3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/screensavers
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
..
alock pkgs/misc: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08:00
betterlockscreen treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
electricsheep electricsheep: use ffmpeg instead of libav 2021-02-02 17:26:36 +01:00
i3lock-pixeled treewide: with stdenv.lib; in meta -> with lib; 2021-01-11 10:38:22 +01:00
light-locker pkgs/misc: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08:00
multilockscreen treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
physlock treewide: with stdenv.lib; in meta -> with lib; 2021-01-11 10:38:22 +01:00
pipes treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
rss-glx rss-glx: use imagemagick6 2021-02-27 18:37:08 +01:00
slock treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
vlock treewide: with stdenv.lib; in meta -> with lib; 2021-01-11 10:38:22 +01:00
xautolock treewide: with stdenv.lib; in meta -> with lib; 2021-01-11 10:38:22 +01:00
xlockmore xlockmore: 5.65 -> 5.66 2021-03-10 03:33:16 +00:00
xscreensaver treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
xss-lock treewide: with stdenv.lib; in meta -> with lib; 2021-01-11 10:38:22 +01:00
xssproxy pkgs/misc: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08:00
xtrlock-pam pkgs/misc: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08:00