nss: Add nss-pem module from fedora.
This is a compatibility module which adds suport for PEM certificates used by OpenSSL and compatible libraries. The module gets built but isn't used at the moment, so we're going to work on integration of it later.
This commit is contained in:
parent
485dcc9152
commit
5f4ca8ec18
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, nspr, perl, zlib, sqlite
|
{ stdenv, fetchurl, fetchgit, nspr, perl, zlib, sqlite
|
||||||
, includeTools ? false
|
, includeTools ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -9,6 +9,12 @@ let
|
|||||||
sha256 = "1ck9q68fxkjq16nflixbqi4xc6bmylmj994h3f1j42g8mp0xf0vd";
|
sha256 = "1ck9q68fxkjq16nflixbqi4xc6bmylmj994h3f1j42g8mp0xf0vd";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nssPEM = fetchgit {
|
||||||
|
url = "git://git.fedorahosted.org/git/nss-pem.git";
|
||||||
|
rev = "07a683505d4a0a1113c4085c1ce117425d0afd80";
|
||||||
|
sha256 = "e4a9396d90e50e8b3cceff45f312eda9aaf356423f4eddd354a0e1afbbfd4cf8";
|
||||||
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -25,12 +31,19 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ nspr perl zlib sqlite ];
|
buildInputs = [ nspr perl zlib sqlite ];
|
||||||
|
|
||||||
|
postUnpack = ''
|
||||||
|
cp -rdv "${nssPEM}/mozilla/security/nss/lib/ckfw/pem" \
|
||||||
|
"$sourceRoot/mozilla/security/nss/lib/ckfw/"
|
||||||
|
chmod -R u+w "$sourceRoot/mozilla/security/nss/lib/ckfw/pem"
|
||||||
|
'';
|
||||||
|
|
||||||
patches = [ ./nss-3.12.5-gentoo-fixups.diff ];
|
patches = [ ./nss-3.12.5-gentoo-fixups.diff ];
|
||||||
|
|
||||||
# Based on the build instructions at
|
# Based on the build instructions at
|
||||||
# http://www.mozilla.org/projects/security/pki/nss/nss-3.11.4/nss-3.11.4-build.html
|
# http://www.mozilla.org/projects/security/pki/nss/nss-3.11.4/nss-3.11.4-build.html
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
sed -i -e 's/^DIRS.*$/& pem/' mozilla/security/nss/lib/ckfw/manifest.mn
|
||||||
sed -i -e "/^PREFIX =/s:= /usr:= $out:" mozilla/security/nss/config/Makefile
|
sed -i -e "/^PREFIX =/s:= /usr:= $out:" mozilla/security/nss/config/Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user