about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2020-06-19 05:09:48 +0200
committeraszlig <aszlig@nix.build>2020-06-23 23:27:15 +0200
commite4860ac4b1787577ad5fece81169f8ca807e6cfa (patch)
treeb484ef685a725b846319cafecd898fb224274f44 /pkgs/games
parenta5521b3be77df459e78097b6105baa5a33046c35 (diff)
fetchGog: Default downloadName to "en3installer0"
Most of the games are using "en3installer0" as the downloadName, so it
makes sense to use this as the default, since first of all do not
support languages other than English except for a few games (eg. Albion)
and second, there is no game with several installer packages to chose
from (at least not on top of my head).

Even if there would be, it would still be the exception rather than the
rule, so let's optimise for the common scenario.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/gog/crosscode.nix1
-rw-r--r--pkgs/games/gog/dungeons3.nix1
-rw-r--r--pkgs/games/gog/epistory.nix1
-rw-r--r--pkgs/games/gog/fetch-gog/default.nix6
-rw-r--r--pkgs/games/gog/freedom-planet.nix1
-rw-r--r--pkgs/games/gog/gibbous.nix1
-rw-r--r--pkgs/games/gog/hollow-knight.nix1
-rw-r--r--pkgs/games/gog/into-the-breach.nix1
-rw-r--r--pkgs/games/gog/kingdoms-and-castles.nix1
-rw-r--r--pkgs/games/gog/knights-and-bikes.nix1
-rw-r--r--pkgs/games/gog/overload.nix1
-rw-r--r--pkgs/games/gog/planescape-torment-enhanced-edition.nix1
-rw-r--r--pkgs/games/gog/stardew-valley.nix1
-rw-r--r--pkgs/games/gog/sunless-skies.nix1
-rw-r--r--pkgs/games/gog/thimbleweed-park.nix2
-rw-r--r--pkgs/games/gog/war-for-the-overworld.nix1
-rw-r--r--pkgs/games/gog/wizard-of-legend.nix1
17 files changed, 5 insertions, 18 deletions
diff --git a/pkgs/games/gog/crosscode.nix b/pkgs/games/gog/crosscode.nix
index d798cae0..c894497d 100644
--- a/pkgs/games/gog/crosscode.nix
+++ b/pkgs/games/gog/crosscode.nix
@@ -6,7 +6,6 @@ buildGame rec {
 
   src = fetchGog {
     productId = 1252295864;
-    downloadName = "en3installer0";
     sha256 = "05ksqak5ry7bvqq582rgsqjnm4fvnv6h1xh3vf3c4mxqnvnwrinr";
   };
 
diff --git a/pkgs/games/gog/dungeons3.nix b/pkgs/games/gog/dungeons3.nix
index 53892f71..358952c4 100644
--- a/pkgs/games/gog/dungeons3.nix
+++ b/pkgs/games/gog/dungeons3.nix
@@ -8,7 +8,6 @@ buildUnity {
 
   src = fetchGog {
     productId = 1346232158;
-    downloadName = "en3installer0";
     sha256 = "1m4dvb91nfwxbgb76n8saznaaif053vb5wkdllb7imdbqqwlfsmy";
   };
 
diff --git a/pkgs/games/gog/epistory.nix b/pkgs/games/gog/epistory.nix
index 8e9815c9..73adddc1 100644
--- a/pkgs/games/gog/epistory.nix
+++ b/pkgs/games/gog/epistory.nix
@@ -8,7 +8,6 @@ buildUnity rec {
 
   src = fetchGog {
     productId = 1986504189;
-    downloadName = "en3installer0";
     sha256 = "05v9i4d7h2id5w6mfpnz3ig62v5dqibl74vahx3gqw9ya4jpgwv8";
   };
 
diff --git a/pkgs/games/gog/fetch-gog/default.nix b/pkgs/games/gog/fetch-gog/default.nix
index 99d40587..03dd3248 100644
--- a/pkgs/games/gog/fetch-gog/default.nix
+++ b/pkgs/games/gog/fetch-gog/default.nix
@@ -4,8 +4,12 @@
 , email, password
 }:
 
-{ productId, downloadName, sha256, downloadType ? "installer", suffix ? "sh"
+{ productId
+, downloadName ? "en3installer0"
+, downloadType ? "installer"
+, suffix ? "sh"
 , name ? "${toString productId}-${downloadName}-${downloadType}.${suffix}"
+, sha256
 }:
 
 let
diff --git a/pkgs/games/gog/freedom-planet.nix b/pkgs/games/gog/freedom-planet.nix
index 05a9b869..76b3ee2b 100644
--- a/pkgs/games/gog/freedom-planet.nix
+++ b/pkgs/games/gog/freedom-planet.nix
@@ -6,7 +6,6 @@ buildGame rec {
 
   src = fetchGog {
     productId = 1207667013;
-    downloadName = "en3installer0";
     sha256 = "1rsa2bswzvc4a8crpzhcw3vjan0f9avk7g1gyqibnyppib63i42w";
   };
 
diff --git a/pkgs/games/gog/gibbous.nix b/pkgs/games/gog/gibbous.nix
index b692d22a..e998484e 100644
--- a/pkgs/games/gog/gibbous.nix
+++ b/pkgs/games/gog/gibbous.nix
@@ -8,7 +8,6 @@ buildUnity {
 
   src = fetchGog {
     productId = 1376056537;
-    downloadName = "en3installer0";
     sha256 = "0d0r2dy5sk54msmsmg4hh5ldlxw18vz0zvsn8c885q0gd3pmygk0";
   };
 }
diff --git a/pkgs/games/gog/hollow-knight.nix b/pkgs/games/gog/hollow-knight.nix
index 05c839f6..68d3be47 100644
--- a/pkgs/games/gog/hollow-knight.nix
+++ b/pkgs/games/gog/hollow-knight.nix
@@ -8,7 +8,6 @@ buildUnity {
 
   src = fetchGog {
     productId = 1308320804;
-    downloadName = "en3installer0";
     sha256 = "19g0b6mzjahvj1y3mk25li61wardgk4fnl5cn9v24s9lhq8i8d28";
   };
 
diff --git a/pkgs/games/gog/into-the-breach.nix b/pkgs/games/gog/into-the-breach.nix
index aaa68a86..463f1df5 100644
--- a/pkgs/games/gog/into-the-breach.nix
+++ b/pkgs/games/gog/into-the-breach.nix
@@ -6,7 +6,6 @@ buildGame rec {
 
   src = fetchGog {
     productId = 2004253604;
-    downloadName = "en3installer0";
     sha256 = "1m9jbgczjdhkgznd51qivh95d8k2wvdq8wx2vlwaid0iqmnf7p0n";
   };
 
diff --git a/pkgs/games/gog/kingdoms-and-castles.nix b/pkgs/games/gog/kingdoms-and-castles.nix
index e31551cc..ba83a356 100644
--- a/pkgs/games/gog/kingdoms-and-castles.nix
+++ b/pkgs/games/gog/kingdoms-and-castles.nix
@@ -8,7 +8,6 @@ buildUnity {
 
   src = fetchGog {
     productId = 2067763543;
-    downloadName = "en3installer0";
     sha256 = "1ag03piq09z7hljcbs145hyj8z0gjcvffj99znf3mnbw2qipb7pq";
   };
 }
diff --git a/pkgs/games/gog/knights-and-bikes.nix b/pkgs/games/gog/knights-and-bikes.nix
index 63c44f29..541b3fca 100644
--- a/pkgs/games/gog/knights-and-bikes.nix
+++ b/pkgs/games/gog/knights-and-bikes.nix
@@ -8,7 +8,6 @@ buildUnity {
 
   src = fetchGog {
     productId = 1687611835;
-    downloadName = "en3installer0";
     sha256 = "0s527s08mkc54ynk18shl1fnr8pjcnfd7qjdilgi9xhghd5sj6g1";
   };
 }
diff --git a/pkgs/games/gog/overload.nix b/pkgs/games/gog/overload.nix
index f1807931..bc68bfd0 100644
--- a/pkgs/games/gog/overload.nix
+++ b/pkgs/games/gog/overload.nix
@@ -8,7 +8,6 @@ buildUnity {
 
   src = fetchGog {
     productId = 1309632191;
-    downloadName = "en3installer0";
     sha256 = "1qyd78xzd39763dmrb5rb8g0v0qi45jjkb9id9gjvvmh41m0731i";
   };
 }
diff --git a/pkgs/games/gog/planescape-torment-enhanced-edition.nix b/pkgs/games/gog/planescape-torment-enhanced-edition.nix
index a26cc574..b97fae91 100644
--- a/pkgs/games/gog/planescape-torment-enhanced-edition.nix
+++ b/pkgs/games/gog/planescape-torment-enhanced-edition.nix
@@ -9,7 +9,6 @@ buildGame {
 
   src = fetchGog {
     productId = 1132393016;
-    downloadName = "en3installer0";
     sha256 = "1plil37525l20j1fpk8726v6vh8rsny2x06msvd2q0900j8xlbl1";
   };
 
diff --git a/pkgs/games/gog/stardew-valley.nix b/pkgs/games/gog/stardew-valley.nix
index b66a2399..52f2b7ac 100644
--- a/pkgs/games/gog/stardew-valley.nix
+++ b/pkgs/games/gog/stardew-valley.nix
@@ -8,7 +8,6 @@ buildGame rec {
 
   src = fetchGog {
     productId = 1453375253;
-    downloadName = "en3installer0";
     sha256 = "1akqnawy2rzyxlkpjip6fa0isnzna131n09fr19i82qj9ywz2c1j";
   };
 
diff --git a/pkgs/games/gog/sunless-skies.nix b/pkgs/games/gog/sunless-skies.nix
index 9efa2c08..3c50afff 100644
--- a/pkgs/games/gog/sunless-skies.nix
+++ b/pkgs/games/gog/sunless-skies.nix
@@ -8,7 +8,6 @@ buildUnity {
 
   src = fetchGog {
     productId = 1771268779;
-    downloadName = "en3installer0";
     sha256 = "1j6mdjy4x6xra2bx1f6iz7ywhg9cz340kfvlihcnmll66jxqrrk7";
   };
 }
diff --git a/pkgs/games/gog/thimbleweed-park.nix b/pkgs/games/gog/thimbleweed-park.nix
index ec48233d..e10de41f 100644
--- a/pkgs/games/gog/thimbleweed-park.nix
+++ b/pkgs/games/gog/thimbleweed-park.nix
@@ -9,11 +9,9 @@ buildGame rec {
 
   srcs = lib.singleton (fetchGog {
     productId = 1325604411;
-    downloadName = "en3installer0";
     sha256 = "141263g749k9h4741q8dyv7149n20zx50rhl0ny8ly6p4yw1spv7";
   }) ++ lib.optional ransomeUnbeeped (fetchGog {
     productId = 1858019230;
-    downloadName = "en3installer0";
     sha256 = "1cfll73qazm9nz40n963qvankqkznfjai9g88kgw6xcl40y8jrqn";
   });
 
diff --git a/pkgs/games/gog/war-for-the-overworld.nix b/pkgs/games/gog/war-for-the-overworld.nix
index fb139fd8..754310ff 100644
--- a/pkgs/games/gog/war-for-the-overworld.nix
+++ b/pkgs/games/gog/war-for-the-overworld.nix
@@ -8,7 +8,6 @@ buildUnity {
 
   src = fetchGog {
     productId = 1964276929;
-    downloadName = "en3installer0";
     sha256 = "0p54dhd2j7zvc78444jnjmkjv7kf6sskbphxkj5vlxmfcrmbd2xq";
   };
 
diff --git a/pkgs/games/gog/wizard-of-legend.nix b/pkgs/games/gog/wizard-of-legend.nix
index ab754f13..8e0a5cf5 100644
--- a/pkgs/games/gog/wizard-of-legend.nix
+++ b/pkgs/games/gog/wizard-of-legend.nix
@@ -8,7 +8,6 @@ buildUnity {
 
   src = fetchGog {
     productId = 2061814323;
-    downloadName = "en3installer0";
     sha256 = "192fhway7ij5f4fh0vb1204f3yg3fxz08fvqlg03gskjs9krcbcz";
   };
 }