nixpkgs/pkgs/applications/networking/go-graft/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
828 B
Nix
Raw Normal View History

2022-06-29 05:42:49 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "go-graft";
2023-02-12 18:01:45 +00:00
version = "0.2.17";
2022-06-29 05:42:49 +00:00
src = fetchFromGitHub {
owner = "mzz2017";
repo = "gg";
rev = "v${version}";
2023-02-12 18:01:45 +00:00
sha256 = "sha256-UhRsgUz9au7e47cS6yrIJXc/8ZxVDpMHWBjoAcw+oCM=";
2022-06-29 05:42:49 +00:00
};
CGO_ENABLED = 0;
ldflags = [ "-X github.com/mzz2017/gg/cmd.Version=${version}" "-s" "-w" "-buildid=" ];
2023-02-12 18:01:45 +00:00
vendorHash = "sha256-EiBt2SxUQY05Wr7KJbK+fs3U3iSmqECJ0glS8B2Ox9Q=";
2022-06-29 05:42:49 +00:00
subPackages = [ "." ];
meta = with lib; {
description = "A 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;
};
}