From 4091249bb6f53fc42327558ae4aa3fb3eb255c6e Mon Sep 17 00:00:00 2001 From: Varun Narravula Date: Fri, 12 Dec 2025 15:17:54 -0800 Subject: [PATCH] fosrl-newt: use ldflags for version instead of string substitution --- pkgs/by-name/fo/fosrl-newt/package.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/by-name/fo/fosrl-newt/package.nix b/pkgs/by-name/fo/fosrl-newt/package.nix index 1b895ed6f25a..48df8202eac1 100644 --- a/pkgs/by-name/fo/fosrl-newt/package.nix +++ b/pkgs/by-name/fo/fosrl-newt/package.nix @@ -18,16 +18,12 @@ buildGoModule rec { vendorHash = "sha256-5Xr6mwPtsqEliKeKv2rhhp6JC7u3coP4nnhIxGMqccU="; - postPatch = '' - substituteInPlace main.go \ - --replace-fail "version_replaceme" "${version}" - ''; - nativeInstallCheckInputs = [ versionCheckHook ]; ldflags = [ "-s" "-w" + "-X=main.newtVersion=${version}" ]; doInstallCheck = true;