lol
at v192 29 lines 727 B view raw
1{ stdenv, nss, curl, perl, perlPackages }: 2 3stdenv.mkDerivation rec { 4 name = "nss-cacert-${nss.version}"; 5 6 src = nss.src; 7 8 postPatch = '' 9 unpackFile ${curl.src}; 10 ''; 11 12 nativeBuildInputs = [ perl perlPackages.LWP ]; 13 14 buildPhase = '' 15 perl curl-*/lib/mk-ca-bundle.pl -d "file://$(pwd)/nss/lib/ckfw/builtins/certdata.txt" ca-bundle.crt 16 ''; 17 18 installPhase = '' 19 mkdir -pv $out/etc/ssl/certs 20 cp -v ca-bundle.crt $out/etc/ssl/certs 21 ''; 22 23 meta = with stdenv.lib; { 24 homepage = http://curl.haxx.se/docs/caextract.html; 25 description = "A bundle of X.509 certificates of public Certificate Authorities (CA)"; 26 platforms = platforms.all; 27 maintainers = with maintainers; [ wkennington ]; 28 }; 29}