1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/nixos/modules/system/boot/loader
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
..
generations-dir nixos treewide: Fix references to linux-kernel.target 2021-01-25 13:06:12 -05:00
generic-extlinux-compatible nixos: Get rid of systemConfig kernel parameter 2021-02-18 12:48:08 +01:00
grub treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
init-script nixos: don't set systemConfig for stage-2 2021-02-18 12:48:08 +01:00
raspberrypi Merge pull request #98858 from sorki/cross/rpifw 2021-01-29 10:21:32 -06:00
systemd-boot Merge pull request #108952 from Mic92/systemd-builder 2021-03-20 16:05:27 +00:00
efi.nix
loader.nix nixos/treewide: Move rename.nix imports to their respective modules 2019-12-10 02:51:19 +01:00