1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

lmdb: fix on OSX

This commit is contained in:
William Casarin 2015-10-20 07:28:03 -07:00
parent 657b1ccc47
commit 91e9673954

View file

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