Flake.nix interface: `nix show` fails with `aarch64-linux` required to build

I’ve been trying to build mach-nix the flakes way and among the problems I ran into I noticed that nix show github:DavHau/mach-nix fails with

a ‘aarch64-linux’ with features {} is required to build '/nix/store/2646…

I had an impression that nix show must work by only looking at flake.nix and flake.lock, without any evaluations, and in particular should not require cross-compiling the project. My hypothesis is that current flake.nix somehow breaks the expected interface and does more than declare outputs, but I cannot quite figure out what is the required change (I tried some messing around: https://github.com/newkozlukov/mach-nix/pull/1)

TLDR: Am I right that nix show should just work, and how do I make it work?

Thanks

1 Like

Found this issue, probably a better place for discussion: Usage with Nix Flakes · Issue #153 · DavHau/mach-nix · GitHub

1 Like