From 53630e3b1544de38f509e48ac0f589bcfafa7728 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Dec 2019 15:57:10 +0000 Subject: [PATCH] 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. --- external/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/default.nix b/external/default.nix index ee0bf94fa..6e1dce111 100644 --- a/external/default.nix +++ b/external/default.nix @@ -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);