2010-01-20 15:10:26 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-07-29 16:10:52 +02:00
|
|
|
name = "cacert-20140704";
|
2010-01-20 15:10:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-06-25 14:05:48 +02:00
|
|
|
url = "http://tarballs.nixos.org/${name}.pem.bz2";
|
2014-07-29 16:10:52 +02:00
|
|
|
sha256 = "05ymb7lrxavscbpx5xywlbya9q66r26fbngfif6zrvfpf3qskiza";
|
2010-01-20 15:10:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = "true";
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/etc
|
2010-01-20 15:10:26 +01: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)";
|
|
|
|
};
|
|
|
|
}
|