about summary refs log tree commit diff
path: root/pkgs/games/default.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-02-18 10:53:38 +0100
committeraszlig <aszlig@nix.build>2018-02-21 20:24:51 +0100
commit73b4b0bfb78998a53b73ce2501f4d2b8bc73198d (patch)
treed0f7a985542c8a7562aab18fa9fb9808c49f3c6c /pkgs/games/default.nix
parente8eb9e5db9492972ac932c8bc5a94009bc6aa236 (diff)
pkgs/games: Add a basic fetcher for GOG
We're in almost the same misery here as with HumbleBundle, because we
can't get stable download URLs with manifests for games that have an
"os" field of either "windows" or "osx".

Unfortunately, this isn't the only hoop we're going to, because similar
to the HumbleBundle fetcher, we need to solve a (re)captcha in order to
login (and I've been annoyed by countless cars, street signs, roads,
busses, store fronts, hills and mountains during development).

I tried looking for a way to get an API key similar to what itch.io is
doing, but the only mechanism in place is a temporary key which needs to
be refreshed using the old key after a while, so it's unsuitable for our
case.

The code currently is very much _not_ DRY, because a lot of it is copied
over and modified from fetchHumbleBundle, especially the captcha solving
application.

It's really a shame to see the same situation that we have for
HumbleBundle in GOG, given that HB is getting less DRM-free games these
days and GOG is DRM-free *only* (which is a very good thing).

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/default.nix')
-rw-r--r--pkgs/games/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/games/default.nix b/pkgs/games/default.nix
index dd97148d..ae86d30e 100644
--- a/pkgs/games/default.nix
+++ b/pkgs/games/default.nix
@@ -42,7 +42,7 @@ let
   packages = (pkgs.lib.evalModules {
     modules = [
       (if config == null then configFile else config)
-      baseModule ./humblebundle ./steam ./itch
+      baseModule ./humblebundle ./steam ./itch ./gog
     ];
   }).config.packages;