nixpkgs/nixos/modules/installer/tools
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
..
nixos-build-vms nixos-build-vms: use the driverInteractive attribute instead 2020-10-25 20:14:53 +01:00
nixos-option Merge pull request #109665 from prusnak/stdenv-lib-nixos 2021-01-19 23:50:30 +01:00
get-version-suffix Revert adding .git-revision unconditionally 2016-08-09 14:15:06 +02:00
nix-fallback-paths.nix nix: 2.3.9 -> 2.3.10 2020-12-18 12:33:49 +01:00
nixos-enter.sh Merge pull request #80769 from chkno/nixos-enter-tmp 2020-12-31 01:37:41 +01:00
nixos-generate-config.pl nixos/tools: generate an xserver config 2021-02-13 18:46:01 -05:00
nixos-install.sh nixos-install: pass through keep-going flag 2020-10-31 17:13:45 +01:00
nixos-version.sh nixos/nixos-*: use runtimeShell 2020-08-16 13:08:33 +00:00
tools.nix treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00