lix/src
Eelco Dolstra 2c1ecf8e81 nix-env -i: Add a flag ‘--remove-all’ / ‘-r’
This is equivalent to running ‘nix-env -e '*'’ first, except that it
happens in a single transaction.  Thus, ‘nix-env -i pkgs...’ replaces
the profile with the specified set of packages.

The main motivation is to support declarative package management
(similar to environment.systemPackages in NixOS).  That is, if you
have a specification ‘profile.nix’ like this:

  with import <nixpkgs> {};
  [ thunderbird
    geeqie
    ...
  ]

then after any change to ‘profile.nix’, you can run:

  $ nix-env -f profile.nix -ir

to update the profile to match the specification.  (Without the ‘-r’
flag, if you remove a package from ‘profile.nix’, it won't be removed
from the actual profile.)

Suggested by @zefhemel.
2013-09-03 21:21:14 +02:00
..
boost * Install some headers in the right location. 2009-03-05 14:57:50 +00:00
bsdiff-4.3 Drop the externals directory 2012-03-18 23:54:57 +01:00
libexpr nix-env: Use wildcard match by default 2013-09-03 16:35:49 +02:00
libmain Respect MINSIGSTKSZ when allocating an alternative stack 2013-08-07 15:44:19 +00:00
libstore Only show trace messages when tracing is enabled 2013-09-02 12:01:04 +02:00
libutil Fix typos, especially those that end up in the Nix manual 2013-08-26 11:15:22 +02:00
nix-daemon Run the daemon worker on the same CPU as the client 2013-08-07 14:02:04 +02:00
nix-env nix-env -i: Add a flag ‘--remove-all’ / ‘-r’ 2013-09-03 21:21:14 +02:00
nix-hash When ‘--help’ is given, just run ‘man’ to show the manual page 2012-10-03 16:40:09 -04:00
nix-instantiate Work on Values instead of Exprs 2013-09-03 13:17:51 +00:00
nix-log2xml * Emit warning='1' or error='1' attributes for lines marked as 2010-03-05 12:54:58 +00:00
nix-setuid-helper Templatise tokenizeString() 2012-09-19 15:43:23 -04:00
nix-store nix-store --export: Export paths in topologically sorted order 2013-05-23 14:55:36 -04:00
Makefile.am Rename nix-worker to nix-daemon 2012-10-03 17:59:23 -04:00