From 9c6328a7bfae5aa378ffc79ee271df633372c22b Mon Sep 17 00:00:00 2001 From: Charles Strahan Date: Mon, 27 Apr 2015 00:59:31 -0400 Subject: [PATCH] nix-env: document --set option --- doc/manual/command-ref/nix-env.xml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/doc/manual/command-ref/nix-env.xml b/doc/manual/command-ref/nix-env.xml index d37f4bcc1..45a99b27d 100644 --- a/doc/manual/command-ref/nix-env.xml +++ b/doc/manual/command-ref/nix-env.xml @@ -701,6 +701,44 @@ $ nix-env -e '.*' (remove everything) + + +Operation <option>--set</option> + +Synopsis + + + nix-env + + drvname + + + +Description + +The operation modifies the current generation of a +profile so that it contains exactly the specified derivation, and nothing else. + + + + +Examples + + +The following updates a profile such that its current generation will contain +just Firefox: + + +$ nix-env -p /nix/var/nix/profiles/browser --set firefox + + + + + + + + + Operation <option>--set-flag</option>