forked from lix-project/hydra
Merge pull request #562 from grahamc/141-redux
Allow channels to be usefully imported by other nix expressions.
This commit is contained in:
commit
7f6d52f4c3
|
@ -32,6 +32,10 @@ sub process {
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
|
maybeStorePath = if builtins ? langVersion && builtins.lessThan 1 builtins.langVersion
|
||||||
|
then builtins.storePath
|
||||||
|
else x: x;
|
||||||
|
|
||||||
mkFakeDerivation = attrs: outputs:
|
mkFakeDerivation = attrs: outputs:
|
||||||
let
|
let
|
||||||
outputNames = builtins.attrNames outputs;
|
outputNames = builtins.attrNames outputs;
|
||||||
|
@ -44,7 +48,7 @@ let
|
||||||
{ name = outputName;
|
{ name = outputName;
|
||||||
value = common // {
|
value = common // {
|
||||||
inherit outputName;
|
inherit outputName;
|
||||||
outPath = builtins.getAttr outputName outputs;
|
outPath = maybeStorePath (builtins.getAttr outputName outputs);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
outputsList = map outputToAttrListElement outputNames;
|
outputsList = map outputToAttrListElement outputNames;
|
||||||
|
|
Loading…
Reference in a new issue