nixpkgs/pkgs/data/misc/cacert/default.nix
Eelco Dolstra acba9240cd nixos.org/tarballs -> tarballs.nixos.org
It's currently the same machine, but tarballs.nixos.org should become
an S3/CloudFront site eventually.
2013-06-25 14:12:16 +02:00

24 lines
520 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "cacert-20121229";
src = fetchurl {
url = "http://tarballs.nixos.org/${name}.pem.bz2";
sha256 = "031s86pqvn620zkj6w97hqgjvkp6vsvlymzz7rwvkv25zvrjsgif";
};
unpackPhase = "true";
installPhase =
''
mkdir -p $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)";
};
}