nixpkgs/nixos/modules/config
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
..
fonts treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
gtk
krb5
xdg nixos/xdg/portal: fix loading portals from systemd service 2021-01-11 19:22:22 -05:00
appstream.nix
console.nix nixos/console: fix console setting reloading 2021-02-21 10:27:34 +01:00
debug-info.nix
gnu.nix nixos/modules: stdenv.lib -> lib 2021-01-17 21:40:51 +01:00
i18n.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
iproute2.nix
ldap.nix
locale.nix
malloc.nix
networking.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
no-x-libs.nix beam-packages: move wxSupport arg up to package set, add beam_nox 2021-01-24 21:04:52 +01:00
nsswitch.nix
power-management.nix
pulseaudio.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
qt5.nix
resolvconf.nix
shells-environment.nix
swap.nix nixos/swap: Remove dependency on rngd (module removed) 2021-02-21 01:33:50 +01:00
sysctl.nix
system-environment.nix
system-path.nix nixos/config: move nano to defaultPackages 2021-03-30 11:50:03 +02:00
terminfo.nix
unix-odbc-drivers.nix
update-users-groups.pl nixos/update-users-groups: read access to /etc/shadow for group shadow 2021-03-18 00:08:35 -07:00
users-groups.nix treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
vte.nix
zram.nix