cargo-rdme: use finalAttrs

This commit is contained in:
Christoph Jabs
2026-02-05 09:18:17 +02:00
parent 6d511b35b9
commit 034a17fc0e
+4 -4
View File
@@ -4,12 +4,12 @@
fetchCrate,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cargo-rdme";
version = "1.5.0";
src = fetchCrate {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-TmV6Fc5vlc4fm9w4+iuxmnonwsEbqoJ3jvpIyQOuxjg=";
};
@@ -19,11 +19,11 @@ rustPlatform.buildRustPackage rec {
description = "Cargo command to create the README.md from your crate's documentation";
mainProgram = "cargo-rdme";
homepage = "https://github.com/orium/cargo-rdme";
changelog = "https://github.com/orium/cargo-rdme/blob/v${version}/release-notes.md";
changelog = "https://github.com/orium/cargo-rdme/blob/v${finalAttrs.version}/release-notes.md";
license = with lib.licenses; [ mpl20 ];
maintainers = with lib.maintainers; [
GoldsteinE
chrjabs
];
};
}
})