3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/misc/cacert/default.nix
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

24 lines
520 B
Nix

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