nixpkgs/modules/programs
Eelco Dolstra b89f941b20 Provide missing command suggestions, Ubuntu style
If the user tries to run a program that doesn't exist from Bash, the
program name is looked up in a database that maps to Nix package
names.  If it is found, we print out a message like:

  $ pdflatex
  The program ‘pdflatex’ is currently not installed. It is provided by
  several packages. You can install it by typing one of the following:
    nix-env -i tetex
    nix-env -i texlive-core

If the environment variable $NIX_AUTO_INSTALL is set, the command is
installed and executed automatically:

  $ hello --version
  The program ‘hello’ is currently not installed. It is provided by
  the package ‘hello’, which I will now install for you.
  installing `hello-2.8'
  hello (GNU hello) 2.8
  Copyright (C) 2011 Free Software Foundation, Inc. ...

To use this, you must currently manually put the SQLite programs
database in /var/lib/nixos/programs.sqlite.  In the future, this file
should be provided as part of the NixOS channel so it gets updated
automatically.  To get a test version:

  $ curl http://nixos.org/~eelco/programs.sqlite.xz | xz -d > /var/lib/nixos/programs.sqlite
2013-01-30 15:00:59 +01:00
..
bash Provide missing command suggestions, Ubuntu style 2013-01-30 15:00:59 +01:00
blcr.nix Make blcr module use the configured kernel 2011-09-21 13:13:36 +00:00
info.nix * Provide info's manpage. 2012-03-04 16:10:19 +00:00
shadow.nix Add option ‘users.motd’ for setting a message of the day shown on login 2012-10-23 09:10:48 -04:00
shell.nix Add option for specifying shell aliases, environment.shellAliases. 2012-11-20 16:33:29 +01:00
ssh.nix Merge remote-tracking branch 'origin/master' into systemd 2012-11-30 16:12:04 +01:00
ssmtp.nix
virtualbox.nix Turn networking.interfaces into an attribute set 2012-11-02 17:08:11 +01:00
wvdial.nix wvdial: don't make wvdial a system package; only root can run it 2011-11-25 17:41:47 +00:00