Skip to content

Commit 0aad20f

Browse files
authored
wofi-power-menu: use finalAttrs pattern (#384205)
2 parents 07e1242 + d203bd5 commit 0aad20f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkgs/by-name/wo/wofi-power-menu/package.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
nix-update-script,
99
}:
1010

11-
rustPlatform.buildRustPackage rec {
11+
rustPlatform.buildRustPackage (finalAttrs: {
1212
pname = "wofi-power-menu";
1313
version = "0.2.6";
1414

1515
src = fetchFromGitHub {
1616
owner = "szaffarano";
1717
repo = "wofi-power-menu";
18-
tag = "v${version}";
18+
tag = "v${finalAttrs.version}";
1919
hash = "sha256-UDDDtI6wnx64KG+1/S6bYTc1xi1vOFuZOmRCLK2Yzew=";
2020
};
2121

@@ -38,9 +38,9 @@ rustPlatform.buildRustPackage rec {
3838
meta = {
3939
description = "Highly configurable power menu using the wofi launcher power-menu";
4040
homepage = "https://github.com/szaffarano/wofi-power-menu";
41-
changelog = "https://github.com/szaffarano/wofi-power-menu/releases/tag/v${version}";
41+
changelog = "https://github.com/szaffarano/wofi-power-menu/releases/tag/v${finalAttrs.version}";
4242
license = lib.licenses.mit;
4343
maintainers = with lib.maintainers; [ defelo ];
4444
mainProgram = "wofi-power-menu";
4545
};
46-
}
46+
})

0 commit comments

Comments
 (0)