* Utility function for computing a Perl 5 search path.
svn path=/nixpkgs/trunk/; revision=25425
This commit is contained in:
parent
90b84f7051
commit
5488651792
|
@ -45,6 +45,10 @@ rec {
|
||||||
makeLibraryPath = makeSearchPath "lib";
|
makeLibraryPath = makeSearchPath "lib";
|
||||||
|
|
||||||
|
|
||||||
|
# Idem for Perl search paths.
|
||||||
|
makePerlPath = makeSearchPath "lib/perl5/site_perl";
|
||||||
|
|
||||||
|
|
||||||
# Dependening on the boolean `cond', return either the given string
|
# Dependening on the boolean `cond', return either the given string
|
||||||
# or the empty string.
|
# or the empty string.
|
||||||
optionalString = cond: string: if cond then string else "";
|
optionalString = cond: string: if cond then string else "";
|
||||||
|
|
Loading…
Reference in New Issue