-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c76866
commit 2bc0116
Showing
7 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
source common.sh | ||
|
||
feats=(--experimental-features 'nix-command ca-derivations') | ||
|
||
out1=$(nix-build "${feats[@]}" ./text-hashed-output.nix -A root --no-out-link) | ||
|
||
clearStore | ||
|
||
out2=$(nix-build "${feats[@]}" ./text-hashed-output.nix -A wrapper --no-out-link) | ||
|
||
diff -r $out1 $out2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
source common.sh | ||
|
||
feats=(--experimental-features 'nix-command ca-derivations') | ||
|
||
nix eval "${feats[@]}" --impure --expr \ | ||
'with (import ./text-hashed-output.nix); let | ||
a = root.outPath; | ||
b = builtins.outputOf root.drvPath "out"; | ||
in builtins.trace a | ||
(builtins.trace b | ||
(assert a == b; null))' | ||
|
||
nix eval "${feats[@]}" --impure --expr \ | ||
'with (import ./text-hashed-output.nix); let | ||
a = dependent.outPath; | ||
b = builtins.outputOf dependent.drvPath "out"; | ||
in builtins.trace a | ||
(builtins.trace b | ||
(assert a == b; null))' | ||
|
||
nix eval "${feats[@]}" --impure --expr \ | ||
'with (import ./text-hashed-output.nix); let | ||
a = builtins.outputOf dependent.outPath "out"; | ||
b = builtins.outputOf dependent.out "out"; | ||
in builtins.trace a | ||
(builtins.trace b | ||
(assert a == b; null))' | ||
|
||
nix eval "${feats[@]}" --impure --expr \ | ||
'with (import ./text-hashed-output.nix); let | ||
a = builtins.outputOf dependent.out "out"; | ||
b = builtins.outputOf (builtins.outputOf dependent.drvPath "out") "out"; | ||
in builtins.trace a | ||
(builtins.trace b | ||
(assert a == b; null))' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters