gargoyle: fix darwin build

/cc ZHF #36454
This commit is contained in:
Daiderd Jordan
2018-03-17 22:16:37 +01:00
parent 54c1ca5fe9
commit 6da3ba48a7
2 changed files with 146 additions and 0 deletions
+5
View File
@@ -36,6 +36,11 @@ stdenv.mkDerivation {
patches = [ ./darwin.patch ];
postPatch = ''
substituteInPlace Jamrules \
--replace -mmacosx-version-min=10.7 -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET
'';
buildPhase = jamenv + "jam -j$NIX_BUILD_CORES";
installPhase = if stdenv.isDarwin then (builtins.readFile ./darwin.sh) else jamenv + ''