README: add a comment about setting pname

This commit is contained in:
Ivan Petkov 2022-12-26 08:59:37 -08:00
parent eae8252b68
commit 67b1799c33
No known key found for this signature in database
GPG Key ID: BB6F9EFC065832B6

View File

@ -457,6 +457,11 @@ Notably, it is possible to set:
* `cargoExtraArgs = "--workspace --exclude qux";` to build the entire cargo
workspace _except for the `qux` crate_.
Consider setting `pname = "NAME_OF_THE_EXECUTABLE";` when building a single
executable from the workspace. Having the name of the package match the
executable name will allow the result to easily run via `nix run` without
further configuration.
## License
This project is licensed under the [MIT license].