nix-community / napalm

Support for building npm packages in Nix and lightweight npm registry [maintainer=?]
MIT License
104 stars 17 forks source link

Nix flake check is failing #36

Closed Mazurel closed 2 months ago

Mazurel commented 3 years ago

This repo provides a basic flake.nix file, but it looks like it is not working correctly when it comes to nix flake check. Running it like nix flake check "github:nix-community/napalm" --no-write-lock-file results in error:

error: a 'aarch64-linux' with features {} is required to build '/nix/store/qmkfj51wpz34yrwl4zhavl7q02gvcmql-cabal2nix-napalm-registry.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}

From my tests, it looks like this error does not occur only when supported systems is only x86_64-linux. This issue can be easily fixed by supporting only this system, although I do not know how the maintainers would see this solution. I would also suggest using pinned nixpkgs as flake inputs so that the flake would be "safer" aka using flake.lock.

In case the solution that I suggested is acceptable, I can make PR with proper changes.

phanirithvij commented 2 months ago

Can be closed, ran it on x86_64-linux succesfully

$ nix flake check "github:nix-community/napalm" --no-write-lock-file
warning: The check omitted these incompatible systems: aarch64-darwin, aarch64-linux, x86_64-darwin
Use '--all-systems' to check all.