mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-26 22:31:39 +03:00
pdm: no need tos split filename from url with new format
This commit is contained in:
parent
c627b56063
commit
b2d2ba121b
@ -2,6 +2,7 @@
|
||||
lib,
|
||||
libpyproject,
|
||||
}: rec {
|
||||
# Get the filename from an URL.
|
||||
# getFilename :: String -> String
|
||||
getFilename = url: lib.lists.last (lib.splitString "/" url);
|
||||
|
||||
@ -25,7 +26,7 @@
|
||||
lib.listToAttrs (
|
||||
map (
|
||||
source:
|
||||
lib.nameValuePair (getFilename source.file) source
|
||||
lib.nameValuePair source.file source
|
||||
)
|
||||
sources
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user