File tree 1 file changed +3
-9
lines changed
pkgs/development/libraries/lmdb
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
{ stdenv , fetchFromGitHub } :
2
2
3
- let optional = stdenv . lib . optional ;
4
- in stdenv . mkDerivation rec {
3
+ stdenv . mkDerivation rec {
5
4
name = "lmdb-${ version } " ;
6
5
version = "0.9.21" ;
7
6
@@ -16,7 +15,8 @@ in stdenv.mkDerivation rec {
16
15
17
16
outputs = [ "bin" "out" "dev" ] ;
18
17
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" ;
20
20
21
21
doCheck = true ;
22
22
checkPhase = "make test" ;
@@ -25,12 +25,6 @@ in stdenv.mkDerivation rec {
25
25
moveToOutput bin "$bin"
26
26
moveToOutput "lib/*.a" REMOVE # until someone needs it
27
27
''
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
-
34
28
# add lmdb.pc (dynamic only)
35
29
+ ''
36
30
mkdir -p "$dev/lib/pkgconfig"
You can’t perform that action at this time.