release: Derive the Nix version from Cargo
This commit was merged in pull request #5.
This commit is contained in:
1 parent
5123ba7643
commit
e59d5d377e
2 files changed
+15
-1
No files matched your search
@@ -45,6 +45,20 @@ The development environment is [devenv](https://devenv.sh): direnv with `.envrc`
|
||||
and `cargo clippy --all-targets` work there, `devenv test` runs both, and `vm-test` runs the NixOS
|
||||
VM test (needs KVM). See [`AGENTS.md`](AGENTS.md) for conventions.
|
||||
|
||||
## Releasing
|
||||
|
||||
Use SemVer for the CLI, request protocol and Nix module options. Bump the patch for
|
||||
compatible fixes and the minor for compatible features. While the major is zero,
|
||||
use a minor bump for breaking changes and document how to upgrade. After `1.0.0`,
|
||||
bump the major for breaking changes.
|
||||
|
||||
1. Set `package.version` in `Cargo.toml` and run `cargo check` to refresh
|
||||
`Cargo.lock`. The Nix package reads the version from `Cargo.toml`.
|
||||
2. After the release commit lands on `main` and passes CI, tag it `v<version>` and
|
||||
push the tag. Keep published tags fixed.
|
||||
3. Update the `slop-broker` input in nixfiles to `ref=refs/tags/v<version>` and run
|
||||
`nix flake update slop-broker` there to refresh its lock entry.
|
||||
|
||||
## License
|
||||
|
||||
MIT; see [`LICENSE`](LICENSE).
|
||||
+1
-1
@@ -4,7 +4,7 @@ let
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "slop-broker";
|
||||
version = "0.1.0";
|
||||
inherit ((builtins.fromTOML (builtins.readFile ../Cargo.toml)).package) version;
|
||||
|
||||
src = toSource {
|
||||
root = ../.;
|
||||
|
||||
Reference in new issue
Block a user