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
829 B
Nix
Raw Normal View History

2022-06-29 06:42:49 +01:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "go-graft";
version = "0.2.6";
src = fetchFromGitHub {
owner = "mzz2017";
repo = "gg";
rev = "v${version}";
sha256 = "sha256-nuRkQEqytMPxd2Wh5XeUwk4YzIxnnNEiVTxFY4GlD1E=";
};
CGO_ENABLED = 0;
ldflags = [ "-X github.com/mzz2017/gg/cmd.Version=${version}" "-s" "-w" "-buildid=" ];
vendorSha256 = "sha256-/ckudHo/ttNct+yrQYQEaC6hX+p+Q6M1I/cjJCgjYLk=";
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;
};
}