crate2nix
crate2nix copied to clipboard
meta.mainProgram should be set to binary name for binary crates
Without this, if we do nix run .#some-workspace-member
, it tries to run $out/bin/rust_some-workspace-member
as it defaults to the package name.
It'd be cool if nix run .#flake
just worked.
I worked around this by setting meta.mainProgram to crateName unconditionally.