Skip to content

Commit 7fc7a64

Browse files
committed
sudo-rs: use finalAttrs
1 parent 0793177 commit 7fc7a64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkgs/by-name/su/sudo-rs/package.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
tzdata,
1212
}:
1313

14-
rustPlatform.buildRustPackage rec {
14+
rustPlatform.buildRustPackage (finalAttrs: {
1515
pname = "sudo-rs";
1616
version = "0.2.6";
1717

1818
src = fetchFromGitHub {
1919
owner = "trifectatechfoundation";
2020
repo = "sudo-rs";
21-
rev = "v${version}";
21+
rev = "v${finalAttrs.version}";
2222
hash = "sha256-vZv3IVSW6N0puoWJBYQPmNntgHPt9SPV07TEuWN/bHw=";
2323
};
2424
useFetchCargoVendor = true;
@@ -82,7 +82,7 @@ rustPlatform.buildRustPackage rec {
8282
meta = with lib; {
8383
description = "Memory safe implementation of sudo and su";
8484
homepage = "https://github.com/trifectatechfoundation/sudo-rs";
85-
changelog = "${meta.homepage}/blob/v${version}/CHANGELOG.md";
85+
changelog = "${finalAttrs.meta.homepage}/blob/v${finalAttrs.version}/CHANGELOG.md";
8686
license = with licenses; [
8787
asl20
8888
mit
@@ -94,4 +94,4 @@ rustPlatform.buildRustPackage rec {
9494
mainProgram = "sudo";
9595
platforms = platforms.linux;
9696
};
97-
}
97+
})

0 commit comments

Comments
 (0)