rhash: fix darwin build

Fixes cmake update to 3.8.2, d74d871f52
This commit is contained in:
Daiderd Jordan
2017-06-13 22:09:12 +02:00
parent 9079f94df7
commit 30412f9930
2 changed files with 41 additions and 1 deletions
+3 -1
View File
@@ -10,13 +10,15 @@ stdenv.mkDerivation rec {
sha256 = "0nii6p4m2x8rkaf8r6smgfwb1q4hpf117kkg64yr6gyqgdchnljv";
};
patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch;
installFlags = [ "DESTDIR=$(out)" "PREFIX=/" ];
# we build the static library because of two makefile bugs
# * .h files installed for static library target only
# * .so.0 -> .so link only created in the static library install target
buildPhase = ''
make lib-shared lib-static build-shared
make lib-shared lib-static build-shared CC=cc PREFIX=$out
'';
# we don't actually want the static library, so we remove it after it