* Utility function for computing a Perl 5 search path.

svn path=/nixpkgs/trunk/; revision=25425
This commit is contained in:
Eelco Dolstra 2011-01-05 12:54:37 +00:00
parent 90b84f7051
commit 5488651792

View File

@ -45,6 +45,10 @@ rec {
makeLibraryPath = makeSearchPath "lib";
# Idem for Perl search paths.
makePerlPath = makeSearchPath "lib/perl5/site_perl";
# Dependening on the boolean `cond', return either the given string
# or the empty string.
optionalString = cond: string: if cond then string else "";