nixpkgs/modules
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
..
config nslcd: Adjust service definition to systemd 2013-01-27 20:07:37 +01:00
hardware Add new 'hardware.cpu.amd.updateMicrocode' option. 2012-09-11 18:44:37 +02:00
installer nixos-install: Handle /nix/var/nix/db being on a separate filesystem 2013-01-25 16:00:47 +01:00
misc Set some missing types 2013-01-16 15:03:54 +01:00
profiles Fix help message 2013-01-22 12:52:13 +01:00
programs Provide missing command suggestions, Ubuntu style 2013-01-30 15:00:59 +01:00
security Rename ‘boot.systemd’ to ‘systemd’ 2013-01-16 12:33:18 +01:00
services mpd: Adjust service definition to systemd 2013-01-27 20:21:04 +01:00
system switch-to-configuration.pl: Fix parsing of comments in fstab, hash-tokens inside strings are not comments. 2013-01-25 15:54:45 +01:00
tasks Fix description of powerManagement.cpuFreqGovernor 2013-01-24 13:55:59 +01:00
testing Rename ‘boot.systemd’ to ‘systemd’ 2013-01-16 12:33:18 +01:00
virtualisation linuxPackages_2_6_32_xen is gone 2013-01-30 02:43:37 -05:00
module-list.nix Provide missing command suggestions, Ubuntu style 2013-01-30 15:00:59 +01:00
rename.nix Rename ‘boot.systemd’ to ‘systemd’ 2013-01-16 12:33:18 +01:00