added a helper function to make a PERL5LIB environment variable for a list of perlPackages and all associated runtime dependencies
commitd5003f5f737b055b0bb97df74004cce9d0c7f5fa
authorAaron Andersen <aaron@fosslib.net>
dateFri 17 Aug 2018, 09:13 (8 years ago)
parentd1dbd50
pkgs/top-level/perl-packages.nix+8
@@ -28,6 +28,14 @@ let
2828 checkPhase = "./Build test";
2929 });
3030
31+ # Helper function to make a PERL5LIB environment variable for a list of perlPackages and all associated runtime dependencies
32+ makePerl5Lib = deps:
33+ with stdenv;
34+ lib.concatStringsSep ":" [
35+ (lib.makePerlPath deps)
36+ (lib.concatStringsSep ":" (map (dep: dep + "/lib/perl5/site_perl") (builtins.filter (dep: dep != null) (lib.flatten (map (dep: lib.getOutput "propagatedBuildInputs" dep) deps)))))
37+ ]
38+ ;
3139
3240 ack = buildPerlPackage rec {
3341 name = "ack-2.24";