integration-tests: Fix flakes test in Nix 2.6

Using a symlink to a Nix store path no longer works.
This commit is contained in:
Zhaofeng Li 2022-02-04 20:58:17 -08:00
parent 94c7e5c79a
commit ca6ad0de38
2 changed files with 3 additions and 1 deletions

View file

@ -14,6 +14,8 @@ in tools.makeTest {
testScript = ''
import re
deployer.succeed("sed -i \"s @nixpkgs@ $(readlink /nixpkgs) g\" /tmp/bundle/flake.nix")
with subtest("Lock flake dependencies"):
# --impure required for path:/nixpkgs which is a symlink to a store path
deployer.succeed("cd /tmp/bundle && nix --experimental-features \"nix-command flakes\" flake lock --impure")

View file

@ -2,7 +2,7 @@
description = "A simple deployment";
inputs = {
nixpkgs.url = "path:/nixpkgs";
nixpkgs.url = "path:@nixpkgs@";
};
outputs = { self, nixpkgs }: let