diff options
author | Jude Taylor <me@jude.bio> | 2015-11-21 15:51:48 -0800 |
---|---|---|
committer | Jude Taylor <me@jude.bio> | 2015-11-21 15:51:48 -0800 |
commit | f5609a4d2ab02a1a39499e78e65ab2ea1f93ff10 (patch) | |
tree | d09540bb28f0696524bf79a9e6ea1b08ae40be3e /pkgs/stdenv/generic | |
parent | 69e7f3bb7405ad4bf81e6d8c1897116c3a4d77dc (diff) | |
download | nixlib-f5609a4d2ab02a1a39499e78e65ab2ea1f93ff10.tar nixlib-f5609a4d2ab02a1a39499e78e65ab2ea1f93ff10.tar.gz nixlib-f5609a4d2ab02a1a39499e78e65ab2ea1f93ff10.tar.bz2 nixlib-f5609a4d2ab02a1a39499e78e65ab2ea1f93ff10.tar.lz nixlib-f5609a4d2ab02a1a39499e78e65ab2ea1f93ff10.tar.xz nixlib-f5609a4d2ab02a1a39499e78e65ab2ea1f93ff10.tar.zst nixlib-f5609a4d2ab02a1a39499e78e65ab2ea1f93ff10.zip |
reintroduce impure host deps to all derivations
Diffstat (limited to 'pkgs/stdenv/generic')
-rw-r--r-- | pkgs/stdenv/generic/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index 850a27962590..dbb3e25a1472 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -160,6 +160,10 @@ let lib.concatMap (input: input.__propagatedSandboxProfile or []) (extraBuildInputs ++ buildInputs ++ nativeBuildInputs); computedPropagatedSandboxProfile = lib.concatMap (input: input.__propagatedSandboxProfile or []) (propagatedBuildInputs ++ propagatedNativeBuildInputs); + computedImpureHostDeps = + lib.unique (lib.concatMap (input: input.__propagatedImpureHostDeps or []) (extraBuildInputs ++ buildInputs ++ nativeBuildInputs)); + computedPropagatedImpureHostDeps = + lib.unique (lib.concatMap (input: input.__propagatedImpureHostDeps or []) (propagatedBuildInputs ++ propagatedNativeBuildInputs)); in { builder = attrs.realBuilder or shell; @@ -183,6 +187,13 @@ let final = lib.concatStringsSep "\n" (lib.filter (x: x != "") (lib.unique profiles)); in final; __propagatedSandboxProfile = lib.unique (computedPropagatedSandboxProfile ++ [ propagatedSandboxProfile ]); + __impureHostDeps = computedImpureHostDeps ++ computedPropagatedImpureHostDeps ++ __propagatedImpureHostDeps ++ __impureHostDeps ++ __extraImpureHostDeps ++ [ + "/dev/zero" + "/dev/random" + "/dev/urandom" + "/bin/sh" + ]; + __propagatedImpureHostDeps = computedPropagatedImpureHostDeps ++ __propagatedImpureHostDeps; } // (if outputs' != [ "out" ] then { outputs = outputs'; } else { })))) ( @@ -220,6 +231,7 @@ let } // ifDarwin { __sandboxProfile = stdenvSandboxProfile; + __impureHostDeps = __stdenvImpureHostDeps; }) // rec { |