* Retrieve the filename of a path.

svn path=/nixpkgs/trunk/; revision=19180
This commit is contained in:
Nicolas Pierron 2010-01-03 11:07:05 +00:00
parent d311b4e98f
commit 1e0b14522a

View File

@ -141,4 +141,6 @@ rec {
else
s;
basename = s: lib.last (splitString "/" s);
}