From e1fe3355a44cc3f95612f3e0d4b1102b2f648530 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Fri, 10 Nov 2023 12:12:46 +1300 Subject: [PATCH] fetchers: Add urls to passthru --- fetchers/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fetchers/default.nix b/fetchers/default.nix index 45ec856..a7abfbd 100644 --- a/fetchers/default.nix +++ b/fetchers/default.nix @@ -128,7 +128,10 @@ lib.mapAttrs (_: func: lib.makeOverridable func) { outputHashAlgo = "sha256"; outputHash = hash; NETRC = netrc_file; - passthru.isWheel = lib.strings.hasSuffix "whl" file; + passthru = { + isWheel = lib.strings.hasSuffix "whl" file; # Poetry2nix compat + urls = urls'; + }; } '' python ${./fetch-from-legacy.py} ${lib.concatStringsSep " " (map (url: "--url ${lib.escapeShellArg url}") urls')} --pname ${pname} --filename ${file}