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:
parent
d1dbd50d85
commit
d5003f5f73
|
@ -28,6 +28,14 @@ let
|
||||||
checkPhase = "./Build test";
|
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 {
|
ack = buildPerlPackage rec {
|
||||||
name = "ack-2.24";
|
name = "ack-2.24";
|
||||||
|
|
Loading…
Reference in New Issue