chore(mach-nix): inline only use of getDistDir

This commit is contained in:
phaer 2023-03-07 21:36:22 +01:00 committed by DavHau
parent c04a8a7ea7
commit 6fd4c8a93b

View File

@ -7,8 +7,6 @@
# For a given name, return the path containing the downloaded file # For a given name, return the path containing the downloaded file
getFetchedDistPath = name: cfg.pythonSources.names + "/${name}"; getFetchedDistPath = name: cfg.pythonSources.names + "/${name}";
# For a given name, return the dist output from nixpkgs.buildPythonPackage
getDistDir = name: dist: dist.dist;
# separate 2 types of downloaded files: sdist, wheel # separate 2 types of downloaded files: sdist, wheel
# key: name; val: {version or "wheel"} # key: name; val: {version or "wheel"}
@ -45,7 +43,7 @@
# - downloaded sdists built into wheels (see above) # - downloaded sdists built into wheels (see above)
# - substitutions from nixpkgs patched for compat with autoPatchelfHook # - substitutions from nixpkgs patched for compat with autoPatchelfHook
finalDistsPaths = finalDistsPaths =
wheel-dists-paths // (l.mapAttrs getDistDir overridden-built-wheels); wheel-dists-paths // (l.mapAttrs (name: dist: dist.dist) overridden-built-wheels);
packageName = config.public.name; packageName = config.public.name;