nixpkgs-suyu/nixos
rnhmjoj 61b7cab481
treewide: use perl.withPackages when possible
Since 03eaa48 added perl.withPackages, there is a canonical way to
create a perl interpreter from a list of libraries, for use in script
shebangs or generic build inputs. This method is declarative (what we
are doing is clear), produces short shebangs[1] and needs not to wrap
existing scripts.

Unfortunately there are a few exceptions that I've found:

  1. Scripts that are calling perl with the -T switch. This makes perl
  ignore PERL5LIB, which is what perl.withPackages is using to inform
  the interpreter of the library paths.

  2. Perl packages that depends on libraries in their own path. This
  is not possible because perl.withPackages works at build time. The
  workaround is to add `-I $out/${perl.libPrefix}` to the shebang.

In all other cases I propose to switch to perl.withPackages.

[1]: https://lwn.net/Articles/779997/
2021-03-31 21:35:37 +02:00
..
doc linuxPackages: 5.4 -> 5.10 2021-03-31 11:29:33 -04:00
lib nixos/qemu-flags: add ppc64 2021-03-05 01:57:54 -08:00
maintainers add new Google Cloud image for the current release 2021-03-21 14:04:09 -04:00
modules treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
tests Merge pull request #108745 from lukegb/pomerium 2021-03-31 17:10:12 +02:00
COPYING
default.nix
README
release-combined.nix
release-small.nix
release.nix installer: amend release with sd-card file move 2021-02-19 19:00:19 -05:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.