diff options
author | Profpatsch <mail@profpatsch.de> | 2021-02-05 11:44:45 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-02-05 12:27:24 +0100 |
commit | d2793017cad11d290dad64f5122b2d2668e2d467 (patch) | |
tree | a694f2a70c590fab56221301bbfae69c36d21455 /pkgs/games/humblebundle/fetch-humble-bundle/default.nix | |
parent | f0b9d862a5e54fa7f9159636ce5a90ef3360231f (diff) |
treewide: stdenv.lib -> pkgs.lib
Upstream is deprecating `stdenv.lib`, so let’s do the same.
Diffstat (limited to 'pkgs/games/humblebundle/fetch-humble-bundle/default.nix')
-rw-r--r-- | pkgs/games/humblebundle/fetch-humble-bundle/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/games/humblebundle/fetch-humble-bundle/default.nix b/pkgs/games/humblebundle/fetch-humble-bundle/default.nix index 1340bce8..53559133 100644 --- a/pkgs/games/humblebundle/fetch-humble-bundle/default.nix +++ b/pkgs/games/humblebundle/fetch-humble-bundle/default.nix @@ -1,4 +1,4 @@ -{ stdenv, curl, cacert, writeText, writeScript, fetchFromGitHub, fetchpatch +{ stdenv, lib, curl, cacert, writeText, writeScript, fetchFromGitHub, fetchpatch , python, python3, pythonPackages # Dependencies for the captcha solver @@ -34,7 +34,7 @@ let waitForResponse(); ''; - escapeCString = stdenv.lib.replaceStrings ["\"" "\n"] ["\\\"" "\\n"]; + escapeCString = lib.replaceStrings ["\"" "\n"] ["\\\"" "\\n"]; application = writeText "captcha.cc" '' #include <QApplication> @@ -136,7 +136,7 @@ let propagatedBuildInputs = [ pythonPackages.requests ]; }; - pyStr = str: "'${stdenv.lib.escape ["'" "\\"] str}'"; + pyStr = str: "'${lib.escape ["'" "\\"] str}'"; getDownloadURL = writeText "gethburl.py" '' import socket, sys, time, humblebundle |