From 9ae3f39e8ec9d27e23e3dd8453181da833a4cc32 Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Fri, 7 Apr 2017 16:51:23 -0400 Subject: [PATCH] p7zip: fix purity on Darwin This should (I hope) get Hydra to build it. Fixes #24714 --- pkgs/tools/archivers/p7zip/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/archivers/p7zip/default.nix b/pkgs/tools/archivers/p7zip/default.nix index 2b61b5b2679..8e9db09147e 100644 --- a/pkgs/tools/archivers/p7zip/default.nix +++ b/pkgs/tools/archivers/p7zip/default.nix @@ -16,6 +16,14 @@ stdenv.mkDerivation rec { }) ]; + # Default makefile is full of impurities on Darwin. The patch doesn't hurt Linux so I'm leaving it unconditional + postPatch = '' + sed -i '/CC=\/usr/d' makefile.macosx_llvm_64bits + + # I think this is a typo and should be CXX? Either way let's kill it + sed -i '/XX=\/usr/d' makefile.macosx_llvm_64bits + ''; + preConfigure = '' makeFlagsArray=(DEST_HOME=$out) buildFlags=all3