wrapper-manager-fds/modules: fix default value for executable name

This commit is contained in:
Gabriel Arazas 2024-07-01 22:31:33 +08:00
parent 52d8603c12
commit df9dcfcb21
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -78,7 +78,7 @@ in
'';
default =
if config.build.variant == "executable" then
lib.tail (lib.path.subpath.components config.arg0)
lib.last (lib.path.subpath.components (lib.removePrefix "/" config.arg0))
else
config.package.meta.mainProgram or config.package.pname;
example = "custom-name";