lmdb on Darwin: fix bogus library name

This commit is contained in:
Vladimír Čunát 2017-02-14 10:50:32 +01:00
parent 6a472cf4c1
commit 61236eb7ee
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -25,6 +25,12 @@ in stdenv.mkDerivation rec {
moveToOutput bin "$bin"
moveToOutput "lib/*.a" REMOVE # until someone needs it
''
# fix bogus library name
+ stdenv.lib.optionalString stdenv.isDarwin ''
mv "$out"/lib/liblmdb.{so,dylib}
''
# add lmdb.pc (dynamic only)
+ ''
mkdir -p "$dev/lib/pkgconfig"