Commit Graph

13 Commits

Author SHA1 Message Date
Bernardo Meurer
363ef08971 Merge pull request #155162 from ZenithalHourlyRate/command-not-found-interactive
command-not-found: add interactive option for auto run
2022-02-08 15:30:05 -08:00
Zenithal
0358703df2 command-not-found: add interactive option for auto run 2022-01-16 07:54:04 +08:00
Zenithal
d046fcf4b1 command-not-found: make NIX_AUTO_RUN work when multiple choices 2022-01-16 07:34:03 +08:00
Bernardo Meurer
c301c1995e command-not-found: remove NIX_AUTO_INSTALL 2021-10-04 12:43:39 -07:00
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
Eelco Dolstra
dd23fc0ca2 Typo 2021-01-04 12:44:03 +01:00
Bernardo Meurer
e4cd9a8f04 nixos/command-not-found: don't use fancy quotes 2021-01-01 20:04:28 -08:00
Bernardo Meurer
88632b7801 nixos/command-not-found: don't suggest nix-env 2021-01-01 16:29:05 -08:00
makefu
5a5db609e5 command-not-found: add options
add option to disable command-not-found as well as option to define dbPath.
Disabling this may remove the perl dependency for bash/zsh prompts
2017-04-17 16:48:47 +02:00
Nathan Zadoks
254eebd8a0 command-not-found: add NIX_AUTO_RUN 2015-12-28 15:09:48 +01:00
Eelco Dolstra
c090efb9d8 command-not-found: Fix nix-env invocation 2015-09-02 19:49:34 +02:00
Eelco Dolstra
13532ee161 command-not-found: Use attribute name 2015-09-02 17:40:19 +02:00
Spencer Whitt
6cba6dc61b command-not-found: Add ZSH Support 2015-01-12 03:45:48 -05:00