mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
fetchdarcs: add SSL_CERT_FILE environment variable
This commit is contained in:
parent
bdd89faebb
commit
d3bf2afc54
1 changed files with 4 additions and 1 deletions
|
@ -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
|
if md5 != "" then
|
||||||
throw "fetchdarcs does not support md5 anymore, please use sha256"
|
throw "fetchdarcs does not support md5 anymore, please use sha256"
|
||||||
else
|
else
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "fetchdarcs";
|
name = "fetchdarcs";
|
||||||
|
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
buildInputs = [darcs];
|
buildInputs = [darcs];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue