complgen: use finalAttrs pattern

This commit is contained in:
Hythera
2026-01-03 19:32:56 +01:00
parent ce6f4a3d2c
commit e90b8cecac
+4 -4
View File
@@ -4,14 +4,14 @@
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "complgen";
version = "0.6.0";
src = fetchFromGitHub {
owner = "adaszko";
repo = "complgen";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-iwbU3DOzyPm3ZoyCRsgBZcSBSg48SsAMS/W4o5e3Gfs=";
};
@@ -21,8 +21,8 @@ rustPlatform.buildRustPackage rec {
description = "Generate {bash,fish,zsh} completions from a single EBNF-like grammar";
mainProgram = "complgen";
homepage = "https://github.com/adaszko/complgen";
changelog = "https://github.com/adaszko/complgen/blob/${src.rev}/CHANGELOG.md";
changelog = "https://github.com/adaszko/complgen/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
})