pip: use pkgs.fetchurl instead of builtins.fetchurl

This resolves
error: store path 'nypj2b7h41zsrmyfsiww97zb6va445gn-torch-2.0.1%2Bcpu-cp310-cp310-linux_x86_64.whl' contains illegal character '%'
This commit is contained in:
Yorick van Pelt 2023-10-18 12:12:36 +02:00
parent 1f57898e4f
commit 54f0cdc35d
No known key found for this signature in database
GPG Key ID: D8D3CC6D951384DE

View File

@ -68,7 +68,7 @@
};
fetchers = {
url = info: l.fetchurl {inherit (info) url sha256;};
url = info: config.deps.fetchurl {inherit (info) url sha256;};
git = info: config.deps.fetchgit {inherit (info) url sha256 rev;};
local = info: "${config.paths.projectRoot}/${info.path}";
};
@ -142,7 +142,7 @@ in {
pythonInterpreter = "${python}/bin/python";
};
setuptools = config.deps.python.pkgs.setuptools;
inherit (nixpkgs) nix fetchgit writeText;
inherit (nixpkgs) nix fetchgit fetchurl writeText;
inherit (writers) writePureShellScript;
};