summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2011-01-05 12:54:37 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2011-01-05 12:54:37 +0000
commit548865179295bc891a6632ba38e4962e51fa0f14 (patch)
tree40234fd7b989899d61375ba7084be608cd2fb42c
parent90b84f7051683f102484b45a377ff3b22cc69db2 (diff)
downloadnixpkgs-548865179295bc891a6632ba38e4962e51fa0f14.tar
nixpkgs-548865179295bc891a6632ba38e4962e51fa0f14.tar.gz
nixpkgs-548865179295bc891a6632ba38e4962e51fa0f14.tar.bz2
nixpkgs-548865179295bc891a6632ba38e4962e51fa0f14.tar.lz
nixpkgs-548865179295bc891a6632ba38e4962e51fa0f14.tar.xz
nixpkgs-548865179295bc891a6632ba38e4962e51fa0f14.tar.zst
nixpkgs-548865179295bc891a6632ba38e4962e51fa0f14.zip
* Utility function for computing a Perl 5 search path.
svn path=/nixpkgs/trunk/; revision=25425
-rw-r--r--pkgs/lib/strings.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/lib/strings.nix b/pkgs/lib/strings.nix
index 83899079327..b5f10437503 100644
--- a/pkgs/lib/strings.nix
+++ b/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 "";