From 3a083218b94ca8e0367b3d31eacd1bdd43b827d4 Mon Sep 17 00:00:00 2001 From: Eric Litak Date: Thu, 22 Sep 2016 19:49:36 -0700 Subject: [PATCH 1/2] factorio: add name as arg to authenticatedFetch --- pkgs/games/factorio/fetch.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/games/factorio/fetch.nix b/pkgs/games/factorio/fetch.nix index 04b31ac10d3..439f2478a66 100644 --- a/pkgs/games/factorio/fetch.nix +++ b/pkgs/games/factorio/fetch.nix @@ -8,6 +8,8 @@ # URL to fetch. url ? "" +, name ? "factorio.tar.gz" + # Login URL. , loginUrl ? "https://www.factorio.com/login" @@ -16,11 +18,9 @@ }: stdenv.mkDerivation { - name = "factorio.tar.gz"; - buildInputs = [ curl xidel ]; - inherit url loginUrl username password cacert; + inherit name url loginUrl username password cacert; builder = ./fetch.sh; From 81122d3beb1934ebd83491ff204f2fca9cb25d39 Mon Sep 17 00:00:00 2001 From: Eric Litak Date: Mon, 24 Apr 2017 17:11:02 -0700 Subject: [PATCH 2/2] factorio: 0.14.21 -> 0.15.1 --- pkgs/games/factorio/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/games/factorio/default.nix b/pkgs/games/factorio/default.nix index e071edfeb81..4a10015bea8 100644 --- a/pkgs/games/factorio/default.nix +++ b/pkgs/games/factorio/default.nix @@ -10,7 +10,7 @@ assert releaseType == "alpha" || releaseType == "headless"; with stdenv.lib; let - version = "0.14.21"; + version = "0.15.1"; isHeadless = releaseType == "headless"; arch = if stdenv.system == "x86_64-linux" then { @@ -25,14 +25,14 @@ let fetch = rec { url = "https://www.factorio.com/get-download/${version}/${releaseType}/${arch.inUrl}"; - name = "factorio_${releaseType}_${arch.inTar}-${version}.tar.gz"; + name = "factorio_${releaseType}_${arch.inTar}-${version}.tar.xz"; x64 = { - headless = fetchurl { inherit name url; sha256 = "0bx4fq46781vv9vr0ciyckaskksjrqikvcdv1yz0wj8mrb2j08cw"; }; - alpha = authenticatedFetch { inherit url; sha256 = "067p1i5wcxk88kmblyklc4lh8fqjc5pqjdarvhjz420vqmdls7k6"; }; + headless = fetchurl { inherit name url; sha256 = "1z84a9yzlld6fv53viwvswp52hlc9fkxzhb2pil7sidzkws3g49l"; }; + alpha = authenticatedFetch { inherit name url; sha256 = "11bxasghrhqb2yg1842v1608x3mjdjv3015jgifpv1xmcqak44jp"; }; }; i386 = { headless = abort "Factorio 32-bit headless binaries are not available for download."; - alpha = authenticatedFetch { inherit url; sha256 = "0iwhachp0z02w19x5y70qy3b0yp79dspawkcygdfna5cfqrybvx6"; }; + alpha = abort "Factorio 32-bit client is not available for this version."; }; };