nixpkgs/nixos/modules
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
..
config treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
hardware Merge pull request #118129 from samuelgrf/fix-enableAllFirmware 2021-03-31 16:51:17 +02:00
i18n/input-method fcitx5: update doc 2021-01-24 02:10:23 +01:00
installer treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
misc nixos/misc/ids: reclaim uid for disnix 2021-03-28 21:40:44 +02:00
profiles nixos/hidepid: drop the module as the hidepid mount option is broken 2021-02-21 13:51:37 +01:00
programs treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
security Merge pull request #116369 from m1cr0man/master 2021-03-23 21:31:42 +01:00
services Merge pull request #108745 from lukegb/pomerium 2021-03-31 17:10:12 +02:00
system treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
tasks nixos/filesystems: always write mount options for swap devices 2021-03-28 19:54:03 +02:00
testing treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
virtualisation nixos/containers: update example path to match defaults 2021-03-29 03:40:44 +02:00
module-list.nix Merge pull request #108745 from lukegb/pomerium 2021-03-31 17:10:12 +02:00
rename.nix nixos/hidepid: drop the module as the hidepid mount option is broken 2021-02-21 13:51:37 +01:00