1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/data/misc/cacert/default.nix
Eelco Dolstra f724089f6f * Added a bundle of CA certificates, useful for e.g. curl.
svn path=/nixpkgs/trunk/; revision=19571
2010-01-20 14:10:26 +00:00

24 lines
527 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "cacert-20090922";
src = fetchurl {
url = http://nixos.org/tarballs/cacert-20090922.pem.bz2;
sha256 = "1fakipxy5y62vslw6czj24pksh16b042py9v0199mxhzg5nmbmy7";
};
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)";
};
}