Skip to content

Instantly share code, notes, and snippets.

@dwt
Created February 28, 2025 08:39
Show Gist options
  • Save dwt/c7fef22b64bae7735eca8cf28efd3785 to your computer and use it in GitHub Desktop.
Save dwt/c7fef22b64bae7735eca8cf28efd3785 to your computer and use it in GitHub Desktop.
Reproduction of nix evaluation failure
let
system = "aarch64-darwin";
in
{
foo.foo = "foo";
foo.bar = "bar";
}
let
system = "aarch64-darwin";
in
{
${system}.foo = "foo";
${system}.bar = "bar";
}
let
system = "aarch64-darwin";
in
{
foo.${system}.foo = "foo";
foo.${system}.bar = "bar";
}
#!/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