mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-22 03:07:31 -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/[
|
||||
algorithm, json,
|
||||
enumerate, os, sequtils, strformat,
|
||||
enumerate, os, sequtils, sets, strformat,
|
||||
strutils, sugar, logging, tables, times
|
||||
]
|
||||
import hwylterm, hwylterm/logging, jsony
|
||||
|
@ -230,13 +230,13 @@ proc getSystemPathDrvs*(): seq[string] =
|
|||
inputDrv
|
||||
|
||||
|
||||
proc getOizysDerivations(): seq[OizysDerivation] =
|
||||
proc getOizysDerivations(): HashSet[OizysDerivation] =
|
||||
let
|
||||
toBuildDrvs = toBuildNixosConfiguration()
|
||||
systemPathDrvs = getSystemPathDrvs()
|
||||
toActullyBuildDrvs = systemPathDrvs.filterIt(it in toBuildDrvs and not isIgnored(it))
|
||||
for name, drv in nixDerivationShow(toActullyBuildDrvs):
|
||||
result.add OizysDerivation(
|
||||
result.incl OizysDerivation(
|
||||
name: name,
|
||||
drv: drv,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue