From 950e77450ddf2b204cb67bbb5e03d83c2afca764 Mon Sep 17 00:00:00 2001 From: M0ustach3 <37956764+M0ustach3@users.noreply.github.com> Date: Sat, 24 Jan 2026 20:09:49 +0100 Subject: [PATCH 1/2] fosrl-newt: 1.8.1 -> 1.9.0 --- pkgs/by-name/fo/fosrl-newt/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/fo/fosrl-newt/package.nix b/pkgs/by-name/fo/fosrl-newt/package.nix index 2204da49223e..01da2d2a7e0c 100644 --- a/pkgs/by-name/fo/fosrl-newt/package.nix +++ b/pkgs/by-name/fo/fosrl-newt/package.nix @@ -8,16 +8,16 @@ buildGoModule rec { pname = "newt"; - version = "1.8.1"; + version = "1.9.0"; src = fetchFromGitHub { owner = "fosrl"; repo = "newt"; tag = version; - hash = "sha256-ndgigIk/3/cPZaJHfxWh6XvtAJe3S57sEwNTMBH0lSE="; + hash = "sha256-Ya+OVSChGmiZ8JTAfl/im8fOhLCC+r6JKSlH+CnSwP8="; }; - vendorHash = "sha256-5Xr6mwPtsqEliKeKv2rhhp6JC7u3coP4nnhIxGMqccU="; + vendorHash = "sha256-Sib6AUCpMgxlMpTc2Esvs+UU0yduVOxWUgT44FHAI+k="; nativeInstallCheckInputs = [ versionCheckHook ]; From c104e79d20c74450dfc1a25554663d08dedcc862 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 25 Jan 2026 15:52:05 +0100 Subject: [PATCH 2/2] newt: migrate to finalAttrs --- pkgs/by-name/fo/fosrl-newt/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/fo/fosrl-newt/package.nix b/pkgs/by-name/fo/fosrl-newt/package.nix index 01da2d2a7e0c..f3350ba8e357 100644 --- a/pkgs/by-name/fo/fosrl-newt/package.nix +++ b/pkgs/by-name/fo/fosrl-newt/package.nix @@ -6,14 +6,14 @@ nix-update-script, }: -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "newt"; version = "1.9.0"; src = fetchFromGitHub { owner = "fosrl"; repo = "newt"; - tag = version; + tag = finalAttrs.version; hash = "sha256-Ya+OVSChGmiZ8JTAfl/im8fOhLCC+r6JKSlH+CnSwP8="; }; @@ -24,7 +24,7 @@ buildGoModule rec { ldflags = [ "-s" "-w" - "-X=main.newtVersion=${version}" + "-X=main.newtVersion=${finalAttrs.version}" ]; doInstallCheck = true; @@ -36,7 +36,7 @@ buildGoModule rec { meta = { description = "Tunneling client for Pangolin"; homepage = "https://github.com/fosrl/newt"; - changelog = "https://github.com/fosrl/newt/releases/tag/${src.tag}"; + changelog = "https://github.com/fosrl/newt/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.agpl3Only; maintainers = with lib.maintainers; [ fab @@ -45,4 +45,4 @@ buildGoModule rec { ]; mainProgram = "newt"; }; -} +})