mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
nix-env -> nix profile priority: add test
This commit is contained in:
parent
9e58b88084
commit
0499695538
2 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,7 @@ nix-env -f ./user-envs.nix -i foo-1.0
|
||||||
nix profile list | grep -A2 'Name:.*foo' | grep 'Store paths:.*foo-1.0'
|
nix profile list | grep -A2 'Name:.*foo' | grep 'Store paths:.*foo-1.0'
|
||||||
nix profile install $flake1Dir -L
|
nix profile install $flake1Dir -L
|
||||||
nix profile list | grep -A4 'Name:.*flake1' | grep 'Locked flake URL:.*narHash'
|
nix profile list | grep -A4 'Name:.*flake1' | grep 'Locked flake URL:.*narHash'
|
||||||
|
grep '"priority":10' $TEST_HOME/.nix-profile/manifest.json
|
||||||
[[ $($TEST_HOME/.nix-profile/bin/hello) = "Hello World" ]]
|
[[ $($TEST_HOME/.nix-profile/bin/hello) = "Hello World" ]]
|
||||||
[ -e $TEST_HOME/.nix-profile/share/man ]
|
[ -e $TEST_HOME/.nix-profile/share/man ]
|
||||||
(! [ -e $TEST_HOME/.nix-profile/include ])
|
(! [ -e $TEST_HOME/.nix-profile/include ])
|
||||||
|
|
|
@ -31,6 +31,7 @@ let
|
||||||
// {
|
// {
|
||||||
meta = {
|
meta = {
|
||||||
description = "A silly test package with some \${escaped anti-quotation} in it";
|
description = "A silly test package with some \${escaped anti-quotation} in it";
|
||||||
|
priority = 10;
|
||||||
inherit platforms;
|
inherit platforms;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue