sudo-rs: use finalAttrs

(cherry picked from commit 7fc7a64326)
This commit is contained in:
r-vdp
2025-05-07 20:39:54 +02:00
committed by Thomas Gerbet
parent e56caa54b0
commit 55a8d86267

View File

@@ -11,14 +11,14 @@
tzdata,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "sudo-rs";
version = "0.2.6";
src = fetchFromGitHub {
owner = "trifectatechfoundation";
repo = "sudo-rs";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-vZv3IVSW6N0puoWJBYQPmNntgHPt9SPV07TEuWN/bHw=";
};
useFetchCargoVendor = true;
@@ -82,7 +82,7 @@ rustPlatform.buildRustPackage rec {
meta = with lib; {
description = "Memory safe implementation of sudo and su";
homepage = "https://github.com/trifectatechfoundation/sudo-rs";
changelog = "${meta.homepage}/blob/v${version}/CHANGELOG.md";
changelog = "${finalAttrs.meta.homepage}/blob/v${finalAttrs.version}/CHANGELOG.md";
license = with licenses; [
asl20
mit
@@ -94,4 +94,4 @@ rustPlatform.buildRustPackage rec {
mainProgram = "sudo";
platforms = platforms.linux;
};
}
})