3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/misc/cacert/default.nix

30 lines
727 B
Nix
Raw Normal View History

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