Created
February 28, 2025 08:39
-
-
Save dwt/c7fef22b64bae7735eca8cf28efd3785 to your computer and use it in GitHub Desktop.
Reproduction of nix evaluation failure
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
let | |
system = "aarch64-darwin"; | |
in | |
{ | |
foo.foo = "foo"; | |
foo.bar = "bar"; | |
} |
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
let | |
system = "aarch64-darwin"; | |
in | |
{ | |
${system}.foo = "foo"; | |
${system}.bar = "bar"; | |
} |
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
let | |
system = "aarch64-darwin"; | |
in | |
{ | |
foo.${system}.foo = "foo"; | |
foo.${system}.bar = "bar"; | |
} |
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
#!/bin/sh | |
for file in repro-first.nix repro-second.nix fine.nix; do | |
echo "nix eval --file $file --json | jq" | |
nix eval --file $file --json | jq | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment