Skip to content

Commit 84bd2f4

Browse files
committedSep 22, 2017
lmdb: fix library id on darwin
1 parent 456e96f commit 84bd2f4

File tree

1 file changed

+3
-9
lines changed
  • pkgs/development/libraries/lmdb

1 file changed

+3
-9
lines changed
 

Diff for: ‎pkgs/development/libraries/lmdb/default.nix

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{ stdenv, fetchFromGitHub }:
22

3-
let optional = stdenv.lib.optional;
4-
in stdenv.mkDerivation rec {
3+
stdenv.mkDerivation rec {
54
name = "lmdb-${version}";
65
version = "0.9.21";
76

@@ -16,7 +15,8 @@ in stdenv.mkDerivation rec {
1615

1716
outputs = [ "bin" "out" "dev" ];
1817

19-
makeFlags = [ "prefix=$(out)" "CC=cc" ];
18+
makeFlags = [ "prefix=$(out)" "CC=cc" ]
19+
++ stdenv.lib.optional stdenv.isDarwin "LDFLAGS=-Wl,-install_name,$(out)/lib/liblmdb.so";
2020

2121
doCheck = true;
2222
checkPhase = "make test";
@@ -25,12 +25,6 @@ in stdenv.mkDerivation rec {
2525
moveToOutput bin "$bin"
2626
moveToOutput "lib/*.a" REMOVE # until someone needs it
2727
''
28-
29-
# fix bogus library name
30-
+ stdenv.lib.optionalString stdenv.isDarwin ''
31-
mv "$out"/lib/liblmdb.{so,dylib}
Has conversations. Original line has conversations.
32-
''
33-
3428
# add lmdb.pc (dynamic only)
3529
+ ''
3630
mkdir -p "$dev/lib/pkgconfig"

0 commit comments

Comments
 (0)
Please sign in to comment.