2010-01-20 14:10:26 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-05 09:43:25 +01:00
|
|
|
name = "cacert-20140715";
|
2010-01-20 14:10:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-06-25 13:05:48 +01:00
|
|
|
url = "http://tarballs.nixos.org/${name}.pem.bz2";
|
2014-08-05 09:43:25 +01:00
|
|
|
sha256 = "1l4j7z6ysnllx99isjzlc8zc34rbbgj4kzlg1y5sy9bgphc8cssl";
|
2010-01-20 14:10:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = "true";
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/etc
|
2010-01-20 14:10:26 +00:00
|
|
|
bunzip2 < $src > $out/etc/ca-bundle.crt
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://curl.haxx.se/docs/caextract.html;
|
|
|
|
description = "A bundle of X.509 certificates of public Certificate Authorities (CA)";
|
|
|
|
};
|
|
|
|
}
|