diff --git a/pkgs/lib/strings.nix b/pkgs/lib/strings.nix index e82fa0ebae08..838990793276 100644 --- a/pkgs/lib/strings.nix +++ b/pkgs/lib/strings.nix @@ -141,4 +141,6 @@ rec { else s; + basename = s: lib.last (splitString "/" s); + }