Home Explore Blog Models CI



nixpkgs

doc/hooks/perl.section.md
9ba5cd9b4b5896662e1b5f903844d430f9cf3cb3fd6a2bcc0000000300000110
# Perl {#setup-hook-perl}

Adds the `lib/site_perl` subdirectory of each build input to the `PERL5LIB` environment variable. For instance, if `buildInputs` contains Perl, then the `lib/site_perl` subdirectory of each input is added to the `PERL5LIB` environment variable.

Chunks
c4b4652d (1st chunk of `doc/hooks/perl.section.md`)
Title: Perl Build Input and PERL5LIB
Summary
This section describes how the Perl setup hook modifies the `PERL5LIB` environment variable. Specifically, it adds the `lib/site_perl` subdirectory of every Perl build input (e.g., if 'Perl' is in `buildInputs`) to `PERL5LIB`.