gobetween: 0.8.0 -> 0.8.1

This commit is contained in:
Aaron Jheng 2025-07-11 22:01:59 +08:00
parent 02839caac6
commit 70dd3fef16
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3
2 changed files with 22 additions and 27 deletions

View File

@ -1,13 +0,0 @@
diff --git a/src/go.mod b/src/go.mod
index 3242342..795c306 100644
--- a/src/go.mod
+++ b/src/go.mod
@@ -28,7 +28,7 @@ require (
github.com/juju/go4 v0.0.0-20160222163258-40d72ab9641a // indirect
github.com/juju/persistent-cookiejar v0.0.0-20171026135701-d5e5a8405ef9 // indirect
github.com/juju/webbrowser v1.0.0 // indirect
- github.com/lxc/lxd v0.0.0-20200706202337-814c96fcec74
+ github.com/lxc/lxd v0.0.0-20200727014606-0d408e8e8ebb
github.com/mattn/go-colorable v0.1.7 // indirect
github.com/miekg/dns v1.1.30
github.com/mitchellh/go-testing-interface v1.14.0 // indirect

View File

@ -6,39 +6,47 @@
enableStatic ? stdenv.hostPlatform.isStatic,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "gobetween";
version = "0.8.0";
version = "0.8.1";
src = fetchFromGitHub {
owner = "yyyar";
repo = "gobetween";
rev = version;
sha256 = "0bxf89l53sqan9qq23rwawjkcanv9p61sw56zjqhyx78f0bh0zbc";
tag = finalAttrs.version;
hash = "sha256-xmyqDi2q7J909cWMec9z2u0DJVJjzv86vjYkSfw/3o8=";
};
patches = [
./gomod.patch
];
vendorHash = "sha256-3jv0dSsJg90J64Ay7USkUOi8cF1Sj+A7v/snJEdJPFU=";
env = {
CGO_ENABLED = 0;
};
buildPhase = ''
runHook preBuild
make -e build${lib.optionalString enableStatic "-static"}
runHook postBuild
'';
vendorHash = null;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp bin/gobetween $out/bin
cp -r share $out/share
cp -r config $out/share
runHook postInstall
'';
meta = with lib; {
meta = {
description = "Modern & minimalistic load balancer for the Сloud era";
homepage = "https://gobetween.io";
license = licenses.mit;
maintainers = with maintainers; [ tomberek ];
broken = true; # vendor isn't reproducible with go > 1.17: nix-build -A $name.goModules --check
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tomberek ];
mainProgram = "gobetween";
};
}
})