fosrl-newt: use ldflags for version instead of string substitution

This commit is contained in:
Varun Narravula
2025-12-13 01:26:56 -08:00
parent 0d4e9ed329
commit 4091249bb6
+1 -5
View File
@@ -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;