mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-22 07:07:32 -06:00
deduplicate build results by using a hash
This commit is contained in:
parent
f6c3a7872d
commit
3489fd6d83
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
import std/[
|
import std/[
|
||||||
algorithm, json,
|
algorithm, json,
|
||||||
enumerate, os, sequtils, strformat,
|
enumerate, os, sequtils, sets, strformat,
|
||||||
strutils, sugar, logging, tables, times
|
strutils, sugar, logging, tables, times
|
||||||
]
|
]
|
||||||
import hwylterm, hwylterm/logging, jsony
|
import hwylterm, hwylterm/logging, jsony
|
||||||
|
@ -230,13 +230,13 @@ proc getSystemPathDrvs*(): seq[string] =
|
||||||
inputDrv
|
inputDrv
|
||||||
|
|
||||||
|
|
||||||
proc getOizysDerivations(): seq[OizysDerivation] =
|
proc getOizysDerivations(): HashSet[OizysDerivation] =
|
||||||
let
|
let
|
||||||
toBuildDrvs = toBuildNixosConfiguration()
|
toBuildDrvs = toBuildNixosConfiguration()
|
||||||
systemPathDrvs = getSystemPathDrvs()
|
systemPathDrvs = getSystemPathDrvs()
|
||||||
toActullyBuildDrvs = systemPathDrvs.filterIt(it in toBuildDrvs and not isIgnored(it))
|
toActullyBuildDrvs = systemPathDrvs.filterIt(it in toBuildDrvs and not isIgnored(it))
|
||||||
for name, drv in nixDerivationShow(toActullyBuildDrvs):
|
for name, drv in nixDerivationShow(toActullyBuildDrvs):
|
||||||
result.add OizysDerivation(
|
result.incl OizysDerivation(
|
||||||
name: name,
|
name: name,
|
||||||
drv: drv,
|
drv: drv,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue