koto: use finalAttrs pattern

This commit is contained in:
Defelo
2025-02-22 11:37:49 +01:00
parent 8fffefa86b
commit 3a989201fe
+4 -4
View File
@@ -7,14 +7,14 @@
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "koto";
version = "0.15.2";
src = fetchFromGitHub {
owner = "koto-lang";
repo = "koto";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-T8SjNeoTANAcT+uAdgzBRMK0LbC038cpKFoCFHgsp8k=";
};
@@ -36,9 +36,9 @@ rustPlatform.buildRustPackage rec {
meta = {
description = "Simple, expressive, embeddable programming language";
homepage = "https://github.com/koto-lang/koto";
changelog = "https://github.com/koto-lang/koto/blob/${src.rev}/CHANGELOG.md";
changelog = "https://github.com/koto-lang/koto/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ defelo ];
mainProgram = "koto";
};
}
})