Skip to content

Instantly share code, notes, and snippets.

@pbogdan
Created September 6, 2020 18:15
Show Gist options
  • Save pbogdan/42484b5c06064a5c4e0cf0081517a00f to your computer and use it in GitHub Desktop.
Save pbogdan/42484b5c06064a5c4e0cf0081517a00f to your computer and use it in GitHub Desktop.
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix
index bfb15f2f783..fff57dd7c48 100644
--- a/pkgs/build-support/cc-wrapper/default.nix
+++ b/pkgs/build-support/cc-wrapper/default.nix
@@ -453,7 +453,7 @@ stdenv.mkDerivation {
substituteAll ${./add-flags.sh} $out/nix-support/add-flags.sh
substituteAll ${./add-hardening.sh} $out/nix-support/add-hardening.sh
- substituteAll ${../wrapper-common/utils.bash} $out/nix-support/utils.bash
+ substituteAll ${if stdenv.isDarwin then ../wrapper-common/utils.bash.darwin else ../wrapper-common/utils.bash} $out/nix-support/utils.bash
''
##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment