nixpkgs-suyu/pkgs/tools/networking/mubeng/default.nix
R. RyanTM 8c1644ca38
mubeng: 0.5.2 -> 0.8.0
* mubeng: 0.5.2 -> 0.8.0 (#149390)

* mubeng: add ldflags for correct version

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
2022-01-03 00:29:31 +01:00

27 lines
637 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "mubeng";
version = "0.8.0";
src = fetchFromGitHub {
owner = "kitabisa";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ckTIHtS7lUUP1Ozt+6O0CAyl3JrcXFqiBC6c+Uc7lwA=";
};
vendorSha256 = "sha256-sAcDyGNOSm+BnsYyrR2x1vkGo6ZEykhkF7L9lzPrD+o=";
ldflags = [ "-s" "-w" "-X ktbs.dev/mubeng/common.Version=${version}" ];
meta = with lib; {
description = "Proxy checker and IP rotator";
homepage = "https://github.com/kitabisa/mubeng";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}