wireguard-go: remove injections of custom shortVer

Due to the previous changes, shortVer is no longer custom at all.
It is just equal to the official version number, so the custom
injections became essentially no-ops.
This commit is contained in:
Volker Diels-Grabsch
2025-09-07 16:24:07 +02:00
parent 0b6811869f
commit e5af3da4df

View File

@@ -10,7 +10,6 @@ buildGoModule (
finalAttrs: finalAttrs:
let let
version = "0.0.20250522"; version = "0.0.20250522";
shortVer = version;
in in
{ {
pname = "wireguard-go"; pname = "wireguard-go";
@@ -24,9 +23,6 @@ buildGoModule (
postPatch = '' postPatch = ''
# Skip formatting tests # Skip formatting tests
rm -f format_test.go rm -f format_test.go
# Inject version
printf 'package main\n\nconst Version = "${shortVer}"' > version.go
''; '';
vendorHash = "sha256-sCajxTV26jjlmgmbV4GG6hg9NkLGS773ZbFyKucvuBE="; vendorHash = "sha256-sCajxTV26jjlmgmbV4GG6hg9NkLGS773ZbFyKucvuBE=";
@@ -56,7 +52,7 @@ buildGoModule (
passthru.tests.version = testers.testVersion { passthru.tests.version = testers.testVersion {
package = wireguard-go; package = wireguard-go;
version = "v${shortVer}"; version = "v${version}";
}; };
meta = with lib; { meta = with lib; {