diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-03-10T16·20+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-03-10T16·20+0000 |
commit | 37d1b1cafd17a18dc7dbef3b4ba7fb204158d58b (patch) | |
tree | 65ac3fdf078404a0957c5df5af855849e03be20f /tests/user-envs.sh | |
parent | a33fb2d28738376d377ea8473f6cffc39bc784c4 (diff) |
* `nix-env -qa --description' shows human-readable descriptions of
packages (provided that they have a `meta.description' attribute). E.g., $ ./src/nix-env/nix-env -qa --description gcc gcc-4.0.2 GNU Compiler Collection, 4.0.x (cross-compiler for sparc-linux) gcc-4.0.2 GNU Compiler Collection, 4.0.x (cross-compiler for mips-linux) gcc-4.0.2 GNU Compiler Collection, 4.0.x (cross-compiler for arm-linux) gcc-4.0.2 GNU Compiler Collection, 4.0.x
Diffstat (limited to 'tests/user-envs.sh')
-rw-r--r-- | tests/user-envs.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/user-envs.sh b/tests/user-envs.sh index b8df8c37355c..b1ba0ccc164d 100644 --- a/tests/user-envs.sh +++ b/tests/user-envs.sh @@ -1,6 +1,7 @@ source common.sh profiles="$NIX_STATE_DIR"/profiles +rm -f $profiles/* # Query installed: should be empty. test "$($nixenv -p $profiles/test -q '*' | wc -l)" -eq 0 @@ -8,6 +9,9 @@ test "$($nixenv -p $profiles/test -q '*' | wc -l)" -eq 0 # Query available: should contain several. test "$($nixenv -p $profiles/test -f ./user-envs.nix -qa '*' | wc -l)" -eq 5 +# Query descriptions. +$nixenv -p $profiles/test -f ./user-envs.nix -qa '*' --description | grep silly + # Install "foo-1.0". $nixenv -p $profiles/test -f ./user-envs.nix -i foo-1.0 |