diff --git a/pkgs/games/factorio/fetch.nix b/pkgs/games/factorio/fetch.nix index 03dc786492a2..78c7faf018ce 100644 --- a/pkgs/games/factorio/fetch.nix +++ b/pkgs/games/factorio/fetch.nix @@ -1,4 +1,4 @@ -{ stdenv, curl +{ stdenv, curl, cacert # Begin download parameters , username ? "" , password ? "" @@ -20,7 +20,7 @@ stdenv.mkDerivation { buildInputs = [ curl ]; - inherit url loginUrl username password; + inherit url loginUrl username password cacert; builder = ./fetch.sh; diff --git a/pkgs/games/factorio/fetch.sh b/pkgs/games/factorio/fetch.sh index ad9766736867..d6549c0a6768 100644 --- a/pkgs/games/factorio/fetch.sh +++ b/pkgs/games/factorio/fetch.sh @@ -8,7 +8,7 @@ source $stdenv/setup curl="curl \ --max-redirs 20 \ --retry 3 \ - --cacert /etc/ssl/certs/ca-bundle.crt \ + --cacert $cacert/etc/ssl/certs/ca-bundle.crt \ $curlOpts \ $NIX_CURL_FLAGS"