koto: use finalAttrs pattern (#384204)
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user