linkFarm: prefer local build
This commit is contained in:
parent
ff8ec02497
commit
c94e44b0ae
@ -108,7 +108,8 @@ rec {
|
||||
|
||||
# Quickly create a set of symlinks to derivations.
|
||||
# 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; }
|
||||
("mkdir -p $out; cd $out; \n" +
|
||||
(lib.concatMapStrings (x: "ln -s '${x.path}' '${x.name}';\n") entries));
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user