diff options
author | Orivej Desh <orivej@gmx.fr> | 2017-07-01 00:27:48 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2017-07-03 21:51:23 +0000 |
commit | 2bc7b4e134079cf72307538e57b8968cfb27d70c (patch) | |
tree | 01f137a427fdf35aa136062ce5a06d82a65043df /pkgs/stdenv | |
parent | d07f30f628f52186aa68b0c918c88aa9ed36f988 (diff) | |
download | nixpkgs-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar nixpkgs-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar.gz nixpkgs-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar.bz2 nixpkgs-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar.lz nixpkgs-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar.xz nixpkgs-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar.zst nixpkgs-2bc7b4e134079cf72307538e57b8968cfb27d70c.zip |
cc-wrapper: simplify expandResponseParams parser
Import from https://github.com/orivej/expand-compiler-args/tree/b2446902fe7816f34c3f21d29a66da3ee2b1601e
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r-- | pkgs/stdenv/darwin/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index e62aee9a02d..1c0b42886ca 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -54,7 +54,7 @@ in rec { __sandboxProfile = binShClosure + libSystemProfile; }; - stageFun = step: last: {shell ? "${bootstrapTools}/bin/sh", + stageFun = step: last: {shell ? "${bootstrapTools}/bin/bash", overrides ? (self: super: {}), extraPreHook ? "", extraBuildInputs, @@ -63,7 +63,7 @@ in rec { thisStdenv = import ../generic { inherit config shell extraBuildInputs; allowedRequisites = if allowedRequisites == null then null else allowedRequisites ++ [ - thisStdenv.cc.parseResponseFile + thisStdenv.cc.expand-response-params ]; name = "stdenv-darwin-boot-${toString step}"; @@ -86,7 +86,7 @@ in rec { cc = { name = "clang-9.9.9"; outPath = bootstrapTools; }; }; - preHook = stage0.stdenv.lib.optionalString (shell == "${bootstrapTools}/bin/sh") '' + preHook = stage0.stdenv.lib.optionalString (shell == "${bootstrapTools}/bin/bash") '' # Don't patch #!/interpreter because it leads to retained # dependencies on the bootstrapTools in the final stdenv. dontPatchShebangs=1 @@ -328,7 +328,7 @@ in rec { gzip ncurses.out ncurses.dev ncurses.man gnused bash gawk gnugrep llvmPackages.clang-unwrapped patch pcre.out binutils-raw.out binutils-raw.dev binutils gettext - cc.parseResponseFile + cc.expand-response-params ]) ++ (with pkgs.darwin; [ dyld Libsystem CF cctools ICU libiconv locale ]); |