mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
Merge pull request #10499 from jb55/fix-lmdb-osx
lmdb: fix build on OSX
This commit is contained in:
commit
0ad5dc11e1
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user