3
0
Fork 0
forked from mirrors/nixpkgs

added a helper function to make a PERL5LIB environment variable for a list of perlPackages and all associated runtime dependencies

This commit is contained in:
Aaron Andersen 2018-08-17 09:13:44 -04:00 committed by Profpatsch
parent d1dbd50d85
commit d5003f5f73

View file

@ -28,6 +28,14 @@ let
checkPhase = "./Build test";
});
# Helper function to make a PERL5LIB environment variable for a list of perlPackages and all associated runtime dependencies
makePerl5Lib = deps:
with stdenv;
lib.concatStringsSep ":" [
(lib.makePerlPath deps)
(lib.concatStringsSep ":" (map (dep: dep + "/lib/perl5/site_perl") (builtins.filter (dep: dep != null) (lib.flatten (map (dep: lib.getOutput "propagatedBuildInputs" dep) deps)))))
]
;
ack = buildPerlPackage rec {
name = "ack-2.24";