3
0
Fork 0
forked from mirrors/nixpkgs

linkFarm: prefer local build

This commit is contained in:
Michael Raskin 2016-12-09 11:26:53 +01:00
parent ff8ec02497
commit c94e44b0ae

View file

@ -108,8 +108,9 @@ rec {
# Quickly create a set of symlinks to derivations. # Quickly create a set of symlinks to derivations.
# entries is a list of attribute sets like { name = "name" ; path = "/nix/store/..."; } # entries is a list of attribute sets like { name = "name" ; path = "/nix/store/..."; }
linkFarm = name: entries: runCommand name {} ("mkdir -p $out; cd $out; \n" + linkFarm = name: entries: runCommand name { preferLocalBuild = true; }
(lib.concatMapStrings (x: "ln -s '${x.path}' '${x.name}';\n") entries)); ("mkdir -p $out; cd $out; \n" +
(lib.concatMapStrings (x: "ln -s '${x.path}' '${x.name}';\n") entries));
# Print an error message if the file with the specified name and # Print an error message if the file with the specified name and