From 73833ee4465369c9eead8e00ce699053e010de2f Mon Sep 17 00:00:00 2001 From: Matthew Justin Bauer Date: Fri, 11 May 2018 08:14:21 -0500 Subject: [PATCH] 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 --- .../darwin/apple-source-releases/architecture/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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