mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
autonix: allow one-to-many dependency resolution
This commit is contained in:
parent
32ee876647
commit
afa4c3aed2
@ -146,7 +146,11 @@ let
|
||||
|
||||
mkDerivation = drv: stdenv.mkDerivation (drv // { src = fetchurl drv.src; });
|
||||
|
||||
resolveDeps = scope: map (dep: scope."${dep}" or null);
|
||||
resolveDeps = scope:
|
||||
let resolveDeps_go = dep:
|
||||
let res = scope."${dep}" or [];
|
||||
in if isList res then res else [res];
|
||||
in concatMap resolveDeps_go;
|
||||
|
||||
userEnvPkg = dep:
|
||||
mapAttrs
|
||||
|
Loading…
Reference in New Issue
Block a user