nixpkgs/nixos/modules/system/boot
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
..
loader treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
binfmt.nix
emergency-mode.nix
grow-partition.nix
initrd-network.nix
initrd-openvpn.nix
initrd-ssh.nix
kernel.nix system/boot: add includeDefaultModules option 2021-02-07 11:14:36 +00:00
kernel_config.nix linux: make sure all config options have the same value 2021-03-07 18:27:14 +01:00
kexec.nix
luksroot.nix boot.initrd.luks: fix case Yubikey -> YubiKey 2021-02-08 04:01:47 +09:00
modprobe.nix
networkd.nix Merge pull request #111342 from veehaitch/systemd-networkd-options 2021-02-27 00:16:20 +01:00
pbkdf2-sha512.c
plymouth.nix nixos/plymouth: use white nixos logo 2021-02-25 16:46:03 -05:00
resolved.nix
shutdown.nix
stage-1-init.sh stage-1: accept init symlinks at any level 2021-02-25 15:58:18 -05:00
stage-1.nix nixos/stage-1: make cpio quiet 2021-03-10 17:46:53 +01:00
stage-2-init.sh systemd: allow custom unit folders to be configured with SYSTEMD_UNIT_PATH 2021-03-22 20:41:12 +01:00
stage-2.nix systemd: allow custom unit folders to be configured with SYSTEMD_UNIT_PATH 2021-03-22 20:41:12 +01:00
systemd-lib.nix Revert "nixos/systemd: Handle template overrides" 2021-03-19 09:05:33 +01:00
systemd-nspawn.nix
systemd-unit-options.nix
systemd.nix Merge master into staging-next 2021-03-23 06:18:02 +00:00
timesyncd.nix
tmp.nix