Skip to content

Commit

Permalink
linkFarm: prefer local build
Browse files Browse the repository at this point in the history
  • Loading branch information
7c6f434c committed Dec 9, 2016
1 parent ff8ec02 commit c94e44b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/build-support/trivial-builders.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ 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" +
(lib.concatMapStrings (x: "ln -s '${x.path}' '${x.name}';\n") entries));
linkFarm = name: entries: runCommand name { preferLocalBuild = true; }
("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
Expand Down

0 comments on commit c94e44b

Please sign in to comment.