summary refs log tree commit diff
path: root/pkgs/stdenv/darwin
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-07-01 00:27:48 +0000
committerOrivej Desh <orivej@gmx.fr>2017-07-03 21:51:23 +0000
commit2bc7b4e134079cf72307538e57b8968cfb27d70c (patch)
tree01f137a427fdf35aa136062ce5a06d82a65043df /pkgs/stdenv/darwin
parentd07f30f628f52186aa68b0c918c88aa9ed36f988 (diff)
downloadnixlib-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar
nixlib-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar.gz
nixlib-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar.bz2
nixlib-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar.lz
nixlib-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar.xz
nixlib-2bc7b4e134079cf72307538e57b8968cfb27d70c.tar.zst
nixlib-2bc7b4e134079cf72307538e57b8968cfb27d70c.zip
cc-wrapper: simplify expandResponseParams parser
Import from https://github.com/orivej/expand-compiler-args/tree/b2446902fe7816f34c3f21d29a66da3ee2b1601e
Diffstat (limited to 'pkgs/stdenv/darwin')
-rw-r--r--pkgs/stdenv/darwin/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix
index e62aee9a02da..1c0b42886ca3 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
     ]);