1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

nss: Sign libraries after striping.

Running NSS in FIPS mode is only possible if the libraries are signed correctly,
so we're doing this in the postFixup hook, to insure nothing gets altered after
that phase.

For more information about FIPS mode, please see:
https://developer.mozilla.org/en-US/docs/NSS/FIPS_Mode_-_an_explanation
This commit is contained in:
aszlig 2012-08-21 21:35:46 +02:00
parent 29fce94665
commit 9e0aaf30aa

View file

@ -86,4 +86,12 @@ stdenv.mkDerivation rec {
--subst-var-by includedir $out/include/nss \
--subst-var-by libdir $out/lib
''; # */
postFixup = ''
for libname in freebl3 nssdbm3 softokn3
do
libfile="$out/lib/lib$libname.so"
LD_LIBRARY_PATH=$out/lib $out/bin/shlibsign -v -i "$libfile"
done
'';
}