diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-09-13 04:13:51 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-09-13 04:13:51 +0200 |
commit | e95dba2a4b35a8550a2d5320f00c90a11a126c0a (patch) | |
tree | 843027f7643b191076ac1394f288715c9e31bbfc /customized/factorio.nix | |
parent | b88de6a31fd97816342382080be6db3f503435f1 (diff) | |
download | nixos-e95dba2a4b35a8550a2d5320f00c90a11a126c0a.tar nixos-e95dba2a4b35a8550a2d5320f00c90a11a126c0a.tar.gz nixos-e95dba2a4b35a8550a2d5320f00c90a11a126c0a.tar.bz2 nixos-e95dba2a4b35a8550a2d5320f00c90a11a126c0a.tar.xz nixos-e95dba2a4b35a8550a2d5320f00c90a11a126c0a.zip |
customized factorio fetch
Diffstat (limited to 'customized/factorio.nix')
-rw-r--r-- | customized/factorio.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/customized/factorio.nix b/customized/factorio.nix index a718c9c7..b2832aad 100644 --- a/customized/factorio.nix +++ b/customized/factorio.nix | |||
@@ -1,9 +1,8 @@ | |||
1 | { stdenv, callPackage, fetchurl, makeWrapper | 1 | { stdenv, callPackage, fetchurl, makeWrapper |
2 | , alsaLib, libX11, libXcursor, libXinerama, libXrandr, libXi, mesa_noglu | 2 | , alsaLib, libX11, libXcursor, libXinerama, libXrandr, libXi, mesa_noglu |
3 | , factorio-utils | 3 | , factorio-utils, factorio-fetch |
4 | , releaseType | 4 | , releaseType |
5 | , mods ? [] | 5 | , mods ? [] |
6 | , username ? "" , password ? "" | ||
7 | }: | 6 | }: |
8 | 7 | ||
9 | assert releaseType == "alpha" || releaseType == "headless"; | 8 | assert releaseType == "alpha" || releaseType == "headless"; |
@@ -21,7 +20,7 @@ let | |||
21 | inTar = "i386"; | 20 | inTar = "i386"; |
22 | } else abort "Unsupported platform"; | 21 | } else abort "Unsupported platform"; |
23 | 22 | ||
24 | authenticatedFetch = callPackage ./fetch.nix { inherit username password; }; | 23 | authenticatedFetch = factorio-fetch; |
25 | 24 | ||
26 | fetch = rec { | 25 | fetch = rec { |
27 | url = "https://www.factorio.com/get-download/${version}/${releaseType}/${arch.inUrl}"; | 26 | url = "https://www.factorio.com/get-download/${version}/${releaseType}/${arch.inUrl}"; |