2022-06-29 05:42:49 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "go-graft";
|
2024-08-31 13:06:15 +00:00
|
|
|
version = "0.2.19";
|
2022-06-29 05:42:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mzz2017";
|
|
|
|
repo = "gg";
|
|
|
|
rev = "v${version}";
|
2024-08-31 13:06:15 +00:00
|
|
|
sha256 = "sha256-DXW0NtFYvcCX4CgMs5/5HPaO9f9eFtw401wmJdCbHPU=";
|
2022-06-29 05:42:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
2023-12-24 20:14:12 +00:00
|
|
|
ldflags = [ "-X github.com/mzz2017/gg/cmd.Version=${version}" "-s" "-w" ];
|
2023-02-26 05:07:38 +00:00
|
|
|
vendorHash = "sha256-fnM4ycqDyruCdCA1Cr4Ki48xeQiTG4l5dLVuAafEm14=";
|
2022-06-29 05:42:49 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line tool for one-click proxy in your research and development without installing v2ray or anything else";
|
|
|
|
homepage = "https://github.com/mzz2017/gg";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = with maintainers; [ xyenon ];
|
|
|
|
mainProgram = "gg";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|