cargo-rdme: use finalAttrs
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user