crate2nix icon indicating copy to clipboard operation
crate2nix copied to clipboard

meta.mainProgram should be set to binary name for binary crates

Open Fuuzetsu opened this issue 3 years ago • 1 comments

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.

Fuuzetsu avatar Apr 30 '21 01:04 Fuuzetsu

I worked around this by setting meta.mainProgram to crateName unconditionally.

Fuuzetsu avatar Apr 30 '21 05:04 Fuuzetsu