File tree 2 files changed +25
-5
lines changed
pkgs/development/libraries/nss
2 files changed +25
-5
lines changed Original file line number Diff line number Diff line change
1
+ --- nss/lib/ckfw/pem/ckpem.h 2018-01-03 13:36:12.000000000 -0800
2
+ +++ nss/lib/ckfw/pem/ckpem.h 2018-01-03 13:36:20.000000000 -0800
3
+ @@ -156,8 +156,6 @@
4
+ NSS_EXTERN_DATA pemInternalObject nss_pem_data[];
5
+ NSS_EXTERN_DATA const PRUint32 nss_pem_nObjects;
6
+
7
+ - PRBool logged_in;
8
+ -
9
+ /* our raw object data array */
10
+ NSS_EXTERN_DATA pemInternalObject nss_pem_data[];
11
+ NSS_EXTERN_DATA const PRUint32 nss_pem_nObjects;
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ in stdenv.mkDerivation rec {
28
28
[
29
29
# Based on http://patch-tracker.debian.org/patch/series/dl/nss/2:3.15.4-1/85_security_load.patch
30
30
./85_security_load.patch
31
+ ./ckpem.patch
31
32
] ;
32
33
33
34
patchFlags = "-p0" ;
@@ -45,7 +46,8 @@ in stdenv.mkDerivation rec {
45
46
"NSS_ENABLE_ECC=1"
46
47
"USE_SYSTEM_ZLIB=1"
47
48
"NSS_USE_SYSTEM_SQLITE=1"
48
- ] ++ stdenv . lib . optional stdenv . is64bit "USE_64=1" ;
49
+ ] ++ stdenv . lib . optional stdenv . is64bit "USE_64=1"
50
+ ++ stdenv . lib . optional stdenv . isDarwin "CCC=clang++" ;
49
51
50
52
NIX_CFLAGS_COMPILE = "-Wno-error" ;
51
53
@@ -84,15 +86,22 @@ in stdenv.mkDerivation rec {
84
86
85
87
postFixup = ''
86
88
for libname in freebl3 nssdbm3 softokn3
87
- do
88
- libfile="$out/lib/lib$libname.so"
89
- LD_LIBRARY_PATH=$out/lib $out/bin/shlibsign -v -i "$libfile"
89
+ do '' +
90
+ ( if stdenv . isDarwin
91
+ then ''
92
+ libfile="$out/lib/lib$libname.dylib"
93
+ DYLD_LIBRARY_PATH=$out/lib:${ nspr . out } /lib \
94
+ '' else ''
95
+ libfile="$out/lib/lib$libname.so"
96
+ LD_LIBRARY_PATH=$out/lib:${ nspr . out } /lib \
97
+ '' ) + ''
98
+ $out/bin/shlibsign -v -i "$libfile"
90
99
done
91
100
92
101
moveToOutput bin "$tools"
93
102
moveToOutput bin/nss-config "$dev"
94
103
moveToOutput lib/libcrmf.a "$dev" # needed by firefox, for example
95
- rm "$out"/lib/*.a
104
+ rm -f "$out"/lib/*.a
96
105
'' ;
97
106
98
107
meta = {
You can’t perform that action at this time.
0 commit comments