1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 06:36:43 +00:00
nixpkgs/pkgs/os-specific/darwin/apple-source-releases/architecture/default.nix
Matthew Justin Bauer 73833ee446
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
2018-05-11 08:14:21 -05:00

24 lines
467 B
Nix

{ stdenv, appleDerivation }:
appleDerivation {
dontBuild = true;
postPatch = ''
substituteInPlace $sourceRoot/Makefile \
--replace "/usr/include" "/include" \
--replace "/usr/bin/" "" \
--replace "/bin/" ""
'';
installPhase = ''
export DSTROOT=$out
make install
'';
meta = with stdenv.lib; {
maintainers = with maintainers; [ copumpkin ];
platforms = platforms.darwin;
license = licenses.apsl20;
};
}