diff options
author | Renzo Carbonara <gnuk0001@gmail.com> | 2017-04-26 21:54:15 +0200 |
---|---|---|
committer | Renzo Carbonara <gnuk0001@gmail.com> | 2017-04-26 22:23:00 +0200 |
commit | d3bf2afc5425127170dc7b71d4aee9cda544f83b (patch) | |
tree | cdcc910037648455fde9b580441b74a57edc8e54 /pkgs/build-support/fetchdarcs | |
parent | bdd89faebb2c3d7c291776643de65efbc5172b44 (diff) |
fetchdarcs: add SSL_CERT_FILE environment variable
Diffstat (limited to 'pkgs/build-support/fetchdarcs')
-rw-r--r-- | pkgs/build-support/fetchdarcs/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchdarcs/default.nix b/pkgs/build-support/fetchdarcs/default.nix index 2644a20d0a53..c28cc35219c5 100644 --- a/pkgs/build-support/fetchdarcs/default.nix +++ b/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]; |