about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-05-11 08:14:21 -0500
committerGitHub <noreply@github.com>2018-05-11 08:14:21 -0500
commit73833ee4465369c9eead8e00ce699053e010de2f (patch)
treed7e30ea72e4d2ccbcbe0a109a7422f495a6fe876 /pkgs
parent805b3ecc55804e56946cf5de130d0b5e3839e8df (diff)
downloadnixlib-73833ee4465369c9eead8e00ce699053e010de2f.tar
nixlib-73833ee4465369c9eead8e00ce699053e010de2f.tar.gz
nixlib-73833ee4465369c9eead8e00ce699053e010de2f.tar.bz2
nixlib-73833ee4465369c9eead8e00ce699053e010de2f.tar.lz
nixlib-73833ee4465369c9eead8e00ce699053e010de2f.tar.xz
nixlib-73833ee4465369c9eead8e00ce699053e010de2f.tar.zst
nixlib-73833ee4465369c9eead8e00ce699053e010de2f.zip
darwin.architecture: add postPatch back in
I didn't think it was even being called before, but now getting this error:

https://hydra.nixos.org/build/73955984/nixlog/1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/os-specific/darwin/apple-source-releases/architecture/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/architecture/default.nix b/pkgs/os-specific/darwin/apple-source-releases/architecture/default.nix
index 07c36ebfe120..8b3eb2017e27 100644
--- a/pkgs/os-specific/darwin/apple-source-releases/architecture/default.nix
+++ b/pkgs/os-specific/darwin/apple-source-releases/architecture/default.nix
@@ -3,6 +3,13 @@
 appleDerivation {
   dontBuild = true;
 
+  postPatch = ''
+    substituteInPlace $sourceRoot/Makefile \
+      --replace "/usr/include" "/include" \
+      --replace "/usr/bin/" "" \
+      --replace "/bin/" ""
+  '';
+
   installPhase = ''
     export DSTROOT=$out
     make install