From adfa3fbab8e9b9bf4cf5b399ce7fc310a32ec4ae Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Sat, 2 Aug 2025 13:44:51 +0200 Subject: [PATCH] flex-ncat: use finalAttrs pattern --- pkgs/by-name/fl/flex-ncat/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fl/flex-ncat/package.nix b/pkgs/by-name/fl/flex-ncat/package.nix index 9d0ac31c9e65..b6f7de484d9f 100644 --- a/pkgs/by-name/fl/flex-ncat/package.nix +++ b/pkgs/by-name/fl/flex-ncat/package.nix @@ -5,14 +5,14 @@ nix-update-script, }: -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "flex-ncat"; version = "0.6-20250801.0"; src = fetchFromGitHub { owner = "kc2g-flex-tools"; repo = "nCAT"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-l+A7PlckZFGwibMU5QelMzANP1WS5WPApOnQV0P+SGw="; }; @@ -23,9 +23,9 @@ buildGoModule rec { meta = { homepage = "https://github.com/kc2g-flex-tools/nCAT"; description = "FlexRadio remote control (CAT) via hamlib/rigctl protocol"; - changelog = "https://github.com/kc2g-flex-tools/nCAT/releases/tag/v${version}"; + changelog = "https://github.com/kc2g-flex-tools/nCAT/releases/tag/v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mvs ]; mainProgram = "nCAT"; }; -} +})