summary refs log tree commit diff
path: root/pkgs/games/factorio
diff options
context:
space:
mode:
authorRicardo Ardissone <ricardo.ardissone@gmail.com>2016-04-21 11:09:53 -0300
committerRicardo Ardissone <ricardo.ardissone@gmail.com>2016-04-21 11:09:53 -0300
commitf2cee89b22eb572cfaa24d679a6a6cdf64c5d3d7 (patch)
tree5f16a04abe5570bd842d7273739cc9285f9d135d /pkgs/games/factorio
parent904204ffdafed6ef23248c6d0b4c9ecbd8baa61b (diff)
downloadnixpkgs-f2cee89b22eb572cfaa24d679a6a6cdf64c5d3d7.tar
nixpkgs-f2cee89b22eb572cfaa24d679a6a6cdf64c5d3d7.tar.gz
nixpkgs-f2cee89b22eb572cfaa24d679a6a6cdf64c5d3d7.tar.bz2
nixpkgs-f2cee89b22eb572cfaa24d679a6a6cdf64c5d3d7.tar.lz
nixpkgs-f2cee89b22eb572cfaa24d679a6a6cdf64c5d3d7.tar.xz
nixpkgs-f2cee89b22eb572cfaa24d679a6a6cdf64c5d3d7.tar.zst
nixpkgs-f2cee89b22eb572cfaa24d679a6a6cdf64c5d3d7.zip
factorio: add explict dependency on cacert for chroot build
Diffstat (limited to 'pkgs/games/factorio')
-rw-r--r--pkgs/games/factorio/fetch.nix4
-rw-r--r--pkgs/games/factorio/fetch.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/games/factorio/fetch.nix b/pkgs/games/factorio/fetch.nix
index 03dc786492a..78c7faf018c 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 ad976673686..d6549c0a676 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"