nixpkgs/nixos/modules/programs
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
..
bash Don't enable nix-bash-completions when using Nix 2.4 2020-06-04 14:18:18 +02:00
command-not-found treewide: use perl.withPackages when possible 2021-03-31 21:35:37 +02:00
digitalbitbox Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
zsh programs.zsh: remove unnecessary with 2020-09-03 08:42:24 +02:00
adb.nix nixos/adb: don't make android tools the system-wide mke2fs, lowPrio 2019-11-20 22:57:00 +01:00
appgate-sdp.nix appgate-sdp: init at 5.1.2 2021-01-07 20:29:58 +01:00
atop.nix
autojump.nix nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
bandwhich.nix maintainers: rename filalex77 -> Br1ght0ne 2020-11-17 13:09:31 +02:00
bash-my-aws.nix bash-my-aws: init at 20191231 2020-01-01 14:53:15 -05:00
bcc.nix
browserpass.nix
captive-browser.nix nixos/captive-browser: make it work without a fixed interface 2021-02-12 14:35:51 +08:00
ccache.nix nixos/*: editorconfig fixes 2020-08-08 10:54:16 +10:00
cdemu.nix nixos/cdemu: add types 2021-02-05 10:39:25 +01:00
chromium.nix nixos/chromium: update link in docs (#93794) 2020-10-16 23:04:06 +02:00
clickshare.nix
criu.nix treewide: add bool type to enable options, or make use of mkEnableOption 2020-04-21 08:55:36 +02:00
dconf.nix ibus: fix installation of dconf database 2020-06-02 22:32:03 +02:00
dmrconfig.nix
environment.nix strigi: drop 2020-09-02 02:05:40 +02:00
evince.nix
file-roller.nix
firejail.nix nixos/firejail: allow to pass options to firejail 2020-11-14 12:00:00 +00:00
fish_completion-generator.patch nixos/fish: adapt completions patch to fish 3.2.0 2021-03-06 16:26:22 -08:00
fish.nix nixos/fish: Fix foreign-env function path 2021-01-24 13:41:37 +01:00
freetds.nix nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
fuse.nix
geary.nix nixos: add freedesktop/gnome/myself maintainers 2020-04-01 20:53:09 -04:00
gnome-disks.nix nixos: add freedesktop/gnome/myself maintainers 2020-04-01 20:53:09 -04:00
gnome-documents.nix nixos: add freedesktop/gnome/myself maintainers 2020-04-01 20:53:09 -04:00
gnome-terminal.nix nixos: add freedesktop/gnome/myself maintainers 2020-04-01 20:53:09 -04:00
gnupg.nix yubikey-agent: init at 0.1.3 2020-07-16 15:29:33 +01:00
gpaste.nix nixos/gpaste: return sessionPath 2020-09-01 22:21:09 +02:00
gphoto2.nix
hamster.nix nixos/hamster: fix eval 2020-06-18 16:22:13 +02:00
iftop.nix
iotop.nix
java.nix
kbdlight.nix
less.nix less.nix: fix escape 2021-03-24 23:28:04 +01:00
liboping.nix nixos/liboping: add module 2020-01-16 18:09:35 +01:00
light.nix
mininet.nix
mosh.nix
msmtp.nix nixos/msmtp: add msmtp module 2020-12-03 22:23:20 +01:00
mtr.nix
nano.nix
neovim.nix programs.neovim: fix documentation (#99023) 2020-09-28 22:42:18 +02:00
nm-applet.nix nixos/nm-applet: starts the applet with Appindicator support 2020-09-14 21:11:15 -03:00
npm.nix nixos/npm: enable using a specific nodejs package 2020-04-07 15:34:06 +03:00
oblogout.nix nixos/oblogout: drop module 2019-12-10 22:41:25 -05:00
partition-manager.nix nixos/partition-manager: init 2021-03-05 00:29:47 +08:00
plotinus.nix tree-wide: s/GTK+/GTK/g 2019-09-06 02:54:53 +02:00
plotinus.xml Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
proxychains.nix nixos/proxychains: init 2020-09-09 15:14:13 +02:00
qt5ct.nix nixos/qt5ct: do not require qtstyleplugins 2020-09-09 22:30:32 +02:00
screen.nix screen: move pam service to module 2020-01-03 15:24:32 +00:00
seahorse.nix nixos/seahorse: use seahorse's askpass by default 2019-10-21 18:01:15 +02:00
sedutil.nix
shadow.nix Merge pull request #51270 from aneeshusa/enable-setuid-wrapper-for-chsh 2020-06-02 10:50:31 +01:00
singularity.nix nixos/*: use $out instead of $bin with buildGoPackage 2020-04-28 20:30:29 +10:00
slock.nix
spacefm.nix
ssh.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
ssmtp.nix nixos/ssmtp: fix configuration generator to accomodate ssmtp 2020-12-02 16:41:06 +01:00
steam.nix Merge pull request #113714 from ilian/steam-firewall 2021-03-07 14:22:16 +01:00
sway.nix nixos/sway: further parity between extraPackages default and defaultText 2021-03-17 15:36:31 +00:00
sysdig.nix
system-config-printer.nix nixos/system-config-printer: init 2019-09-06 09:40:17 -04:00
systemtap.nix treewide: add bool type to enable options, or make use of mkEnableOption 2020-04-21 08:55:36 +02:00
thefuck.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00
tilp2.nix nixos/tilp2: init 2021-01-24 14:06:42 +01:00
tmux.nix nixos/tmux: rename extraTmuxConf to extraConfig (#77423) 2020-02-06 15:29:36 -08:00
traceroute.nix nixos/traceroute: init 2020-01-17 21:28:54 +00:00
tsm-client.nix treewide: completely remove types.loaOf 2020-09-02 00:42:50 +02:00
turbovnc.nix turbovnc: Add programs.turbovnc, add test for headless software OpenGL 2021-03-14 06:27:43 +01:00
udevil.nix
usbtop.nix nixos/usbtop: Add module to install usbtop and to enable kernel module 2019-08-30 18:54:33 +02:00
vim.nix nixos/vim: configurable vim package (#100132) 2020-10-15 10:55:16 +02:00
virtualbox.nix
wavemon.nix
waybar.nix
wireshark.nix
wshowkeys.nix wshowkeys: init at 2019-09-26 2020-10-18 14:09:49 +02:00
x2goserver.nix utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
xfs_quota.nix
xonsh.nix nixos/xonsh: source NixOS environment 2020-04-21 23:43:37 +02:00
xss-lock.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
xwayland.nix nixos/xwayland: add new module and allow configuring a default font path 2020-10-04 14:56:30 +01:00
yabar.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00
zmap.nix