File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ echo $path2
9
9
if test " $path1 " ! = " $path2 " ; then
10
10
echo " nix-store --add and --add-fixed mismatch"
11
11
exit 1
12
- fi
12
+ fi
13
13
14
14
path3=$( nix-store --add-fixed sha256 ./dummy)
15
15
echo $path3
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ with import ./config.nix;
11
11
} ;
12
12
13
13
hashmismatch = import <nix/fetchurl.nix> {
14
- url = "file://" + builtins . getEnv "TMPDIR" + " /dummy" ;
14
+ url = "file://" + toString . /dummy;
15
15
sha256 = "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73" ;
16
16
} ;
17
17
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ nix-build check.nix -A fetchurl --no-out-link --repair --hashed-mirrors ''
34
34
nix-build check.nix -A hashmismatch --no-out-link --hashed-mirrors ' ' || status=$?
35
35
[ " $status " = " 102" ]
36
36
37
- echo -n > $TMPDIR /dummy
37
+ echo -n > . /dummy
38
38
nix-build check.nix -A hashmismatch --no-out-link --hashed-mirrors ' '
39
- echo ' Hello World' > $TMPDIR /dummy
39
+ echo ' Hello World' > . /dummy
40
40
41
41
nix-build check.nix -A hashmismatch --no-out-link --check --hashed-mirrors ' ' || status=$?
42
42
[ " $status " = " 102" ]
You can’t perform that action at this time.
0 commit comments