forked from lix-project/lix
Merge pull request #9768 from obsidiansystems/nix-profile-test-no-outlink
`tests/functional/nix-profile.sh`: Add missing `--no-link`
This commit is contained in:
commit
8d4b67912d
|
@ -199,6 +199,6 @@ clearProfiles
|
||||||
mkdir -p $TEST_ROOT/import-profile
|
mkdir -p $TEST_ROOT/import-profile
|
||||||
outPath=$(nix build --no-link --print-out-paths $flake1Dir/flake.nix^out)
|
outPath=$(nix build --no-link --print-out-paths $flake1Dir/flake.nix^out)
|
||||||
printf '{ "version": 2, "elements": [ { "active": true, "attrPath": "legacyPackages.x86_64-linux.hello", "originalUrl": "flake:nixpkgs", "outputs": null, "priority": 5, "storePaths": [ "%s" ], "url": "github:NixOS/nixpkgs/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ] }' "$outPath" > $TEST_ROOT/import-profile/manifest.json
|
printf '{ "version": 2, "elements": [ { "active": true, "attrPath": "legacyPackages.x86_64-linux.hello", "originalUrl": "flake:nixpkgs", "outputs": null, "priority": 5, "storePaths": [ "%s" ], "url": "github:NixOS/nixpkgs/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" } ] }' "$outPath" > $TEST_ROOT/import-profile/manifest.json
|
||||||
nix build --profile $TEST_HOME/.nix-profile $(nix store add-path $TEST_ROOT/import-profile)
|
nix build --profile $TEST_HOME/.nix-profile $(nix store add-path $TEST_ROOT/import-profile) --no-link
|
||||||
nix profile list | grep -A4 'Name:.*hello' | grep "Store paths:.*$outPath"
|
nix profile list | grep -A4 'Name:.*hello' | grep "Store paths:.*$outPath"
|
||||||
nix profile remove hello 2>&1 | grep 'removed 1 packages, kept 0 packages'
|
nix profile remove hello 2>&1 | grep 'removed 1 packages, kept 0 packages'
|
||||||
|
|
Loading…
Reference in a new issue