Merge pull request #10499 from jb55/fix-lmdb-osx

lmdb: fix build on OSX
This commit is contained in:
vbgl 2015-10-28 12:34:55 +01:00
commit 0ad5dc11e1

View File

@ -1,6 +1,7 @@
{ stdenv, fetchzip }: { stdenv, fetchzip }:
stdenv.mkDerivation rec { let optional = stdenv.lib.optional;
in stdenv.mkDerivation rec {
name = "lmdb-${version}"; name = "lmdb-${version}";
version = "0.9.16"; version = "0.9.16";
@ -11,7 +12,8 @@ stdenv.mkDerivation rec {
postUnpack = "sourceRoot=\${sourceRoot}/libraries/liblmdb"; postUnpack = "sourceRoot=\${sourceRoot}/libraries/liblmdb";
makeFlags = "prefix=$(out)"; makeFlags = ["prefix=$(out)"]
++ optional stdenv.cc.isClang "CC=clang";
doCheck = true; doCheck = true;
checkPhase = "make test"; checkPhase = "make test";