about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-02-14T17·07+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-02-14T17·07+0000
commite446d342b77e0babb200afd6b6275df2c70cfaee (patch)
tree86ea0157026866ca09d58e63aaf6496fd3a35346 /doc
parent0cb016c209a6cbfc57a93a3f353a556924d31b50 (diff)
* Added an installation source `--from-expression' (or `-E') to
  install derivations from a Nix expression specified on the command
  line.  This is particularly useful for disambiguation if there are
  multiple derivations with the same name.  For instance, in Nixpkgs,
  to install the Firefox wrapper rather than the plain Firefox
  component:

    $ nix-env -f .../i686-linux.nix -i -E 'x: x.firefoxWrapper'

  The Nix expressions should be functions to which the default Nix
  expression (in this case, `i686-linux.nix') is passed, hence `x:
  ...'.

  This might also be a nice way to deal with high-level (user-level)
  variability, e.g.,

    $ nix-env -f ./server.nix -i -E 'x: x {port = 8080; ssl = false;}'
    

Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions