From 73b4b0bfb78998a53b73ce2501f4d2b8bc73198d Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 18 Feb 2018 10:53:38 +0100 Subject: 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 --- pkgs/games/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/games/default.nix') 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; -- cgit 1.4.1