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