From 1ce46da0d25768ef79c194860afdac2028d24bce Mon Sep 17 00:00:00 2001 From: Defelo Date: Sat, 22 Feb 2025 11:36:30 +0100 Subject: [PATCH] koto-ls: use finalAttrs pattern --- pkgs/by-name/ko/koto-ls/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ko/koto-ls/package.nix b/pkgs/by-name/ko/koto-ls/package.nix index 2abc348d1f3d..4125658fe209 100644 --- a/pkgs/by-name/ko/koto-ls/package.nix +++ b/pkgs/by-name/ko/koto-ls/package.nix @@ -5,14 +5,14 @@ nix-update-script, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "koto-ls"; version = "0.15.0"; src = fetchFromGitHub { owner = "koto-lang"; repo = "koto-ls"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-6a8xckgpz2/Eb0mQ3ZUL7ywmHA69RMXar/55LUu1UWk="; }; @@ -24,9 +24,9 @@ rustPlatform.buildRustPackage rec { meta = { description = "Language server for Koto"; homepage = "https://github.com/koto-lang/koto-ls"; - changelog = "https://github.com/koto-lang/koto-ls/releases/tag/v${version}"; + changelog = "https://github.com/koto-lang/koto-ls/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ defelo ]; mainProgram = "koto-ls"; }; -} +})