pdm: no need tos split filename from url with new format

This commit is contained in:
Frederik Rietdijk 2023-09-29 15:32:03 +02:00 committed by DavHau
parent c627b56063
commit b2d2ba121b

View File

@ -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
);