warp-plus: use go_1_24

Drop -w from ldflags because -s already implies -w
Move to finalAttrs pattern

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij
2025-10-31 13:04:17 +05:30
parent 5a730f1dd1
commit 14b11b6a9c
+6 -5
View File
@@ -1,6 +1,6 @@
{
lib,
buildGoModule,
buildGo124Module,
fetchFromGitHub,
nix-update-script,
@@ -8,7 +8,9 @@
warp-plus,
}:
buildGoModule rec {
# fails with go 1.25, downgrade to 1.24
# error tls.ConnectionState: struct field count mismatch: 17 vs 16
buildGo124Module (finalAttrs: {
pname = "warp-plus";
version = "1.2.6-unstable-2025-10-28";
@@ -23,8 +25,7 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.version=${finalAttrs.version}"
];
patches = [
@@ -59,4 +60,4 @@ buildGoModule rec {
maintainers = with lib.maintainers; [ phanirithvij ];
mainProgram = "warp-plus";
};
}
})