Skip to content

Commit

Permalink
fetchdarcs: add SSL_CERT_FILE environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
k0001 committed Apr 26, 2017
1 parent bdd89fa commit d3bf2af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/build-support/fetchdarcs/default.nix
@@ -1,10 +1,13 @@
{stdenv, darcs, nix}: {url, rev ? null, context ? null, md5 ? "", sha256 ? ""}:
{stdenv, darcs, nix, cacert}:

{url, rev ? null, context ? null, md5 ? "", sha256 ? ""}:

if md5 != "" then
throw "fetchdarcs does not support md5 anymore, please use sha256"
else
stdenv.mkDerivation {
name = "fetchdarcs";
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
builder = ./builder.sh;
buildInputs = [darcs];

Expand Down

0 comments on commit d3bf2af

Please sign in to comment.