From a6cbe603d0f596a2afae93d7dc3f6d217c5bb0c0 Mon Sep 17 00:00:00 2001 From: Terje Larsen Date: Mon, 8 May 2023 13:31:02 +0200 Subject: [PATCH] lib: Include isWheel for fetchFromLegacy There is a bunch of overrides that relies on the src.isWheel attribute, which is not set at all when `fetchFromLegacy` is used. --- lib.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lib.nix b/lib.nix index dd1e264..4c52c07 100644 --- a/lib.nix +++ b/lib.nix @@ -161,6 +161,7 @@ let outputHashAlgo = "sha256"; outputHash = hash; NETRC = netrc_file; + passthru.isWheel = lib.strings.hasSuffix "whl" file; } '' python ${./fetch_from_legacy.py} ${url} ${pname} ${file} mv ${file} $out