* Utility function for computing a Perl 5 search path.

svn path=/nixpkgs/trunk/; revision=25425
wip/yesman
Eelco Dolstra 14 years ago
parent 90b84f7051
commit 5488651792
  1. 4
      pkgs/lib/strings.nix

@ -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…
Cancel
Save