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