FreeBSD support

This commit is contained in:
janus
2015-11-24 10:59:39 +00:00
parent 35cf6c428f
commit a1ade02cdc
10 changed files with 39 additions and 9 deletions

View File

@@ -58,8 +58,9 @@ in stdenv.mkDerivation {
ln -s bzip2 $out/bin/bzcat
'';
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile --replace 'CC=gcc' 'CC=clang'
patchPhase = ''
substituteInPlace Makefile --replace CC=gcc CC=cc
substituteInPlace Makefile-libbz2_so --replace CC=gcc CC=cc
'';
preConfigure = ''