2015-06-02 11:33:56 +02:00
|
|
|
{ stdenv, nss, curl, perl, perlPackages }:
|
2010-01-20 15:10:26 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-29 22:51:55 +02:00
|
|
|
name = "nss-cacert-${nss.version}";
|
2010-01-20 15:10:26 +01:00
|
|
|
|
2015-05-29 22:51:55 +02:00
|
|
|
src = nss.src;
|
|
|
|
|
|
|
|
postPatch = ''
|
2015-06-02 11:33:56 +02:00
|
|
|
unpackFile ${curl.src};
|
2015-05-29 22:51:55 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ] ++ (with perlPackages; [ LWP ]);
|
2010-01-20 15:10:26 +01:00
|
|
|
|
2015-05-29 22:51:55 +02:00
|
|
|
buildPhase = ''
|
|
|
|
perl curl-*/lib/mk-ca-bundle.pl -d "file://$(pwd)/nss/lib/ckfw/builtins/certdata.txt" ca-bundle.crt
|
|
|
|
'';
|
2010-01-20 15:10:26 +01:00
|
|
|
|
2015-05-29 22:51:55 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out
|
|
|
|
cp -v ca-bundle.crt $out
|
|
|
|
'';
|
2010-01-20 15:10:26 +01:00
|
|
|
|
2015-05-29 22:51:55 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-01-20 15:10:26 +01:00
|
|
|
homepage = http://curl.haxx.se/docs/caextract.html;
|
|
|
|
description = "A bundle of X.509 certificates of public Certificate Authorities (CA)";
|
2015-05-29 22:51:55 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2010-01-20 15:10:26 +01:00
|
|
|
};
|
|
|
|
}
|