about summary refs log tree commit diff
path: root/pkgs/games/humblebundle
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2017-09-13 07:28:17 +0200
committeraszlig <aszlig@redmoonstudios.org>2017-09-13 15:27:18 +0200
commit54b4898807b1f2bee72399c45fb044b9af365ec9 (patch)
tree6f1ae28a39708d12bcd047a6f35a789fc8ce3eaf /pkgs/games/humblebundle
parent53ff1ddce61dc60611882914b1e35f35ebb3407d (diff)
pkgs/games: Fix fetchHumbleBundle
The login URL for HumbleBundle has changed from /login to /processlogin,
so let's fix it quickly via sed.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Issue: saik0/humblebundle-python#16
Cc: @saik0
Diffstat (limited to 'pkgs/games/humblebundle')
-rw-r--r--pkgs/games/humblebundle/fetch-humble-bundle/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/games/humblebundle/fetch-humble-bundle/default.nix b/pkgs/games/humblebundle/fetch-humble-bundle/default.nix
index e8f66260..ce21c207 100644
--- a/pkgs/games/humblebundle/fetch-humble-bundle/default.nix
+++ b/pkgs/games/humblebundle/fetch-humble-bundle/default.nix
@@ -89,6 +89,10 @@
       sha256 = "1kcg42nh7sbjabim1pbqx14468pypznjy7fx2bv7dicy0sqd9b8j";
     };
 
+    postPatch = ''
+      sed -i -e '/^LOGIN_URL *=/s,/login,/processlogin,' humblebundle/client.py
+    '';
+
     propagatedBuildInputs = [ pythonPackages.requests ];
   };