* Remove an unnecessary function.
svn path=/nixpkgs/trunk/; revision=33271
This commit is contained in:
parent
6b4cd6673a
commit
2938819d7e
|
@ -112,7 +112,7 @@ _EOF_
|
|||
# the default binary.
|
||||
useSetUID = drv: path:
|
||||
let
|
||||
name = stdenv.lib.basename path;
|
||||
name = baseNameOf path;
|
||||
bin = "${drv}${path}";
|
||||
in assert name != "";
|
||||
writeScript "setUID-${name}" ''
|
||||
|
|
|
@ -153,10 +153,6 @@ rec {
|
|||
s;
|
||||
|
||||
|
||||
# Why do we need this if we have baseNameOf?
|
||||
basename = s: lib.last (splitString "/" s);
|
||||
|
||||
|
||||
# Return true iff string v1 denotes a version older than v2.
|
||||
versionOlder = v1: v2: builtins.compareVersions v2 v1 == 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue