aboutsummaryrefslogtreecommitdiff
path: root/tests/flakes/absolute-paths.sh
blob: e7bfba12d179ce308464660b3b8ce5686deab6de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
source ./common.sh

requireGit

flake1Dir=$TEST_ROOT/flake1
flake2Dir=$TEST_ROOT/flake2

createGitRepo $flake1Dir
cat > $flake1Dir/flake.nix <<EOF
{
    outputs = { self }: { x = builtins.readFile $(pwd)/absolute-paths.sh; };
}
EOF
git -C $flake1Dir add flake.nix
git -C $flake1Dir commit -m Initial

nix eval --impure --json $flake1Dir#x