diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-08-25 00:37:54 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-08-25 00:40:40 +0200 |
commit | e4610f2965c2ab60132344defa055792a658ea45 (patch) | |
tree | e496de33c039df3ff9c63a31e73774e182050fb8 /pkgs/build-support/buildenv/default.nix | |
parent | 9c61317002edf32812d793aebac86a990edcd1cb (diff) | |
download | nixlib-e4610f2965c2ab60132344defa055792a658ea45.tar nixlib-e4610f2965c2ab60132344defa055792a658ea45.tar.gz nixlib-e4610f2965c2ab60132344defa055792a658ea45.tar.bz2 nixlib-e4610f2965c2ab60132344defa055792a658ea45.tar.lz nixlib-e4610f2965c2ab60132344defa055792a658ea45.tar.xz nixlib-e4610f2965c2ab60132344defa055792a658ea45.tar.zst nixlib-e4610f2965c2ab60132344defa055792a658ea45.zip |
buildEnv: Support package priorities like nix-env
This gets rid of a bunch of collision warnings.
Diffstat (limited to 'pkgs/build-support/buildenv/default.nix')
-rw-r--r-- | pkgs/build-support/buildenv/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/build-support/buildenv/default.nix b/pkgs/build-support/buildenv/default.nix index 293291dc1dad..2ae8123faca4 100644 --- a/pkgs/build-support/buildenv/default.nix +++ b/pkgs/build-support/buildenv/default.nix @@ -9,10 +9,10 @@ , # The manifest file (if any). A symlink $out/manifest will be # created to it. manifest ? "" - + , # The paths to symlink. paths - + , # Whether to ignore collisions or abort. ignoreCollisions ? false @@ -28,7 +28,11 @@ }: runCommand name - { inherit manifest paths ignoreCollisions passthru pathsToLink postBuild; + { inherit manifest ignoreCollisions passthru pathsToLink postBuild; + pkgs = builtins.toJSON (map (drv: { + paths = [ drv ]; # FIXME: handle multiple outputs + priority = drv.meta.priority or 5; + }) paths); preferLocalBuild = true; } '' |