fix(external): Correctly determine binary name if locator is empty
If the root of a project is a binary, the previous logic would generate invalid names. This ensure that the last path component of the name is used.
This commit is contained in:
parent
7f74980457
commit
53630e3b15
1 changed files with 1 additions and 1 deletions
2
external/default.nix
vendored
2
external/default.nix
vendored
|
@ -71,7 +71,7 @@ let
|
|||
};
|
||||
|
||||
binArgs = args // {
|
||||
name = last ([ path ] ++ entry.locator);
|
||||
name = (last ((lib.splitString "/" path) ++ entry.locator));
|
||||
};
|
||||
in if entry.isCommand then (program binArgs) else (package libArgs);
|
||||
|
||||
|
|
Loading…
Reference in a new issue