2010-01-20 15:10:26 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-08-28 18:02:18 +02:00
|
|
|
name = "cacert-20110806";
|
2010-01-20 15:10:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-28 18:02:18 +02:00
|
|
|
url = "http://nixos.org/tarballs/${name}.pem.bz2";
|
|
|
|
sha256 = "0vn1hic2a7p1vr2pf9hy8da4zm9qjndid4nwgj1m035y4ldjqlyw";
|
2010-01-20 15:10:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = "true";
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
ensureDir $out/etc
|
|
|
|
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)";
|
|
|
|
};
|
|
|
|
}
|