nixpkgs/pkgs/development
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
..
androidndk-pkgs
arduino Merge pull request #107137 from kneitinger/platformio_add_click_completion 2021-03-21 17:47:30 +01:00
beam-modules
bower-modules/generic
chez-modules
compilers Merge staging-next into staging 2021-03-30 12:06:28 +00:00
coq-modules coqPackages.odd-order: init at 1.12.0 2021-03-31 08:31:08 +02:00
dhall-modules
dotnet-modules
em-modules/generic
gnuradio-modules treewide: remove redundant stdenv 2021-03-26 12:18:16 +07:00
go-modules
go-packages
guile-modules
haskell-modules haskellPackages.darcs: unbreak 2021-03-23 00:32:53 +01:00
idris-modules
interpreters Merge staging-next into staging 2021-03-28 06:05:34 +00:00
java-modules
libraries Merge staging-next into staging 2021-03-31 18:15:02 +00:00
lisp-modules quick-lisp-to-nix: change template to use more double-quotes 2021-03-28 23:55:54 +02:00
lua-modules
misc
mobile Merge pull request #115229 from rolfschr/android-fix-shebang-in-make-standalone-toolchain 2021-03-30 16:59:38 +02:00
node-packages kaput-cli: init at 1.1.1 2021-03-25 10:35:12 +01:00
ocaml-modules ocamlPackages.tcpip: 6.0.0 -> 6.1.0 2021-03-30 08:57:29 +02:00
octave-modules
perl-modules perlPackages.NetCIDRLite: add patch to prevent leading zeroes in ipv4 octets 2021-03-30 12:31:27 +02:00
pharo
php-packages Merge pull request #117651 from r-ryantm/auto-update/php-pcov 2021-03-26 14:17:11 +01:00
pure-modules
python-modules Merge pull request #117962 from risicle/ris-pillow-8.1.2 2021-03-31 20:27:06 +02:00
r-modules
ruby-modules Use minimal git for fetching gems 2021-03-26 17:04:37 -04:00
tools treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
web nodejs-12_x: 12.21.0 -> 12.22.0 2021-03-30 04:20:00 +00:00