1
0
Fork 0
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:
Eli Kogan-Wang 2023-09-10 15:24:03 +02:00
parent 9e58b88084
commit 0499695538
2 changed files with 2 additions and 0 deletions

View file

@ -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 install $flake1Dir -L
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" ]]
[ -e $TEST_HOME/.nix-profile/share/man ]
(! [ -e $TEST_HOME/.nix-profile/include ])

View file

@ -31,6 +31,7 @@ let
// {
meta = {
description = "A silly test package with some \${escaped anti-quotation} in it";
priority = 10;
inherit platforms;
};
}