Skip to content

Commit

Permalink
fetchers: Add urls to passthru
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Nov 9, 2023
1 parent 393c1f0 commit e1fe335
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fetchers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e1fe335

Please sign in to comment.