mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-18 12:01:38 +03:00
feat: add getSourceSpec
This commit is contained in:
parent
1d8fc17b93
commit
c9ea0f7c13
@ -12,6 +12,7 @@
|
||||
getCyclicDependencies,
|
||||
getDependencies,
|
||||
getSource,
|
||||
getSourceSpec,
|
||||
produceDerivation,
|
||||
|
||||
...
|
||||
|
@ -302,6 +302,7 @@ let
|
||||
|
||||
inherit (dreamLockInterface)
|
||||
subsystemAttrs
|
||||
getSourceSpec
|
||||
getDependencies
|
||||
getCyclicDependencies
|
||||
mainPackageName
|
||||
|
@ -77,6 +77,9 @@ let
|
||||
|
||||
cyclicDependencies = lock.cyclicDependencies;
|
||||
|
||||
getSourceSpec = pname: version:
|
||||
sources."${pname}"."${version}" or {};
|
||||
|
||||
getDependencies = pname: version:
|
||||
b.filter
|
||||
(dep: ! b.elem dep cyclicDependencies."${pname}"."${version}" or [])
|
||||
@ -96,6 +99,7 @@ let
|
||||
subsystemAttrs
|
||||
getCyclicDependencies
|
||||
getDependencies
|
||||
getSourceSpec
|
||||
packageVersions
|
||||
subDreamLocks
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user