cargo-semver-checks: use finalAttrs
This commit is contained in:
@@ -9,14 +9,14 @@
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "cargo-semver-checks";
|
||||
version = "0.46.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "obi1kenobi";
|
||||
repo = "cargo-semver-checks";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-y2tkTPctit5rx6OyohPPVo117sGICg6UEDg7RWFmtMA=";
|
||||
};
|
||||
|
||||
@@ -48,7 +48,7 @@ rustPlatform.buildRustPackage rec {
|
||||
substituteInPlace test_outputs/integration_snapshots__bugreport.snap \
|
||||
--replace-fail \
|
||||
'cargo-semver-checks [VERSION] ([HASH])' \
|
||||
'cargo-semver-checks ${version}'
|
||||
'cargo-semver-checks ${finalAttrs.version}'
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
@@ -60,7 +60,7 @@ rustPlatform.buildRustPackage rec {
|
||||
description = "Tool to scan your Rust crate for semver violations";
|
||||
mainProgram = "cargo-semver-checks";
|
||||
homepage = "https://github.com/obi1kenobi/cargo-semver-checks";
|
||||
changelog = "https://github.com/obi1kenobi/cargo-semver-checks/releases/tag/v${version}";
|
||||
changelog = "https://github.com/obi1kenobi/cargo-semver-checks/releases/tag/v${finalAttrs.version}";
|
||||
license = with lib.licenses; [
|
||||
mit # or
|
||||
asl20
|
||||
@@ -70,4 +70,4 @@ rustPlatform.buildRustPackage rec {
|
||||
chrjabs
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user