mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 13:47:43 +00:00
* 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";
|
||||
|
||||
|
||||
# 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 "";
|
||||
|
Loading…
Reference in New Issue
Block a user