mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-25 15:33:20 +03:00
chore(mach-nix): inline only use of getDistDir
This commit is contained in:
parent
c04a8a7ea7
commit
6fd4c8a93b
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user