From 055608227f5a003825a905b0eb2aea39cba5ca16 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 17 Sep 2007 16:08:24 +0000 Subject: * nix-env: allow ~/.nix-defexpr to be a directory. If it is, then the Nix expressions in that directory are combined into an attribute set {file1 = import file1; file2 = import file2; ...}, i.e. each Nix expression is an attribute with the file name as the attribute name. Also recurses into directories. * nix-env: removed the "--import" (-I) option which set the ~/.nix-defexpr symlink. * nix-channel: don't use "nix-env --import", instead symlink ~/.nix-defexpr/channels. So finally nix-channel --update doesn't override any default Nix expressions but combines with them. This means that you can have (say) a local Nixpkgs SVN tree and use it as a default for nix-env: $ ln -s .../path-to-nixpkgs-tree ~/.nix-defexpr/nixpkgs_svn and be subscribed to channels (including Nixpkgs) at the same time. (If there is any ambiguity, the -A flag can be used to disambiguate, e.g. "nix-env -i -A nixpkgs_svn.pan".) --- doc/manual/nix-env.xml | 47 ++++------------------------------------------- 1 file changed, 4 insertions(+), 43 deletions(-) (limited to 'doc') diff --git a/doc/manual/nix-env.xml b/doc/manual/nix-env.xml index 247471d9bd7d..9c9114a90119 100644 --- a/doc/manual/nix-env.xml +++ b/doc/manual/nix-env.xml @@ -142,14 +142,14 @@ linkend="sec-common-options" />. ~/.nix-defexpr + + The default Nix expression used by the , , and operations to obtain - derivations. It is generally a symbolic link to some other - location set using the operation. The - option may be used to override this - default. + derivations. The option may be used to + override this default. @@ -1061,43 +1061,4 @@ error: no generation older than the current (91) exists - - -Operation <option>--import</option> - -Synopsis - - - nix-env - - - - - path - - - - - -Description - -This operation makes path the default -active Nix expression for the user. That is, the symlink -~/.nix-userenv is made to point to -path. - - - - -Examples - - -$ nix-env -I ~/nixpkgs-0.5/ - - - - - - - -- cgit 1.4.1