Skip to content

Commit

Permalink
p7zip: fix purity on Darwin
Browse files Browse the repository at this point in the history
This should (I hope) get Hydra to build it. Fixes #24714
  • Loading branch information
copumpkin committed Apr 7, 2017
1 parent b9e5585 commit 9ae3f39
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/tools/archivers/p7zip/default.nix
Expand Up @@ -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
Expand Down

1 comment on commit 9ae3f39

@copumpkin
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, I meant to push this to master 😄 oh well

Please sign in to comment.