Diff: https://github.com/kitabisa/mubeng/compare/refs/tags/v0.22.0...refs/tags/v0.23.0 Changelog: https://github.com/kitabisa/mubeng/releases/tag/v0.23.0
42 lines
897 B
Nix
42 lines
897 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "mubeng";
|
|
version = "0.23.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mubeng";
|
|
repo = "mubeng";
|
|
tag = "v${version}";
|
|
hash = "sha256-Zd9Cl4sFf1neDHgydxp24k84JKTAkkLB9DKRfTnKHgc=";
|
|
};
|
|
|
|
vendorHash = "sha256-1YO4NOxHHoSF9waI7x7yRvO4HOrs3qqaQxo3tiCp4t4=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/mubeng/mubeng/common.Version=${version}"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
doInstallCheck = true;
|
|
versionCheckProgramArg = "--version";
|
|
|
|
meta = {
|
|
description = "Proxy checker and IP rotator";
|
|
homepage = "https://github.com/mubeng/mubeng";
|
|
changelog = "https://github.com/mubeng/mubeng/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "mubeng";
|
|
};
|
|
}
|