-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ stdenv, fetchFromGitHub }: | ||
|
||
let optional = stdenv.lib.optional; | ||
in stdenv.mkDerivation rec { | ||
stdenv.mkDerivation rec { | ||
name = "lmdb-${version}"; | ||
version = "0.9.21"; | ||
|
||
|
@@ -16,7 +15,8 @@ in stdenv.mkDerivation rec { | |
|
||
outputs = [ "bin" "out" "dev" ]; | ||
|
||
makeFlags = [ "prefix=$(out)" "CC=cc" ]; | ||
makeFlags = [ "prefix=$(out)" "CC=cc" ] | ||
++ stdenv.lib.optional stdenv.isDarwin "LDFLAGS=-Wl,-install_name,$(out)/lib/liblmdb.so"; | ||
|
||
doCheck = true; | ||
checkPhase = "make test"; | ||
|
@@ -25,12 +25,6 @@ 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} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
vcunat
Member
|
||
'' | ||
|
||
# add lmdb.pc (dynamic only) | ||
+ '' | ||
mkdir -p "$dev/lib/pkgconfig" | ||
|
@vcunat Do you remember why you added this? I don't see how this could have worked without a proper install_name.