mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
29 lines
814 B
Nix
29 lines
814 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-graft";
|
|
version = "0.2.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mzz2017";
|
|
repo = "gg";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-07fP3dVFs4MZrFOH/8/4e3LHjFGZd7pNu6J3LBOWAd8=";
|
|
};
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
ldflags = [ "-X github.com/mzz2017/gg/cmd.Version=${version}" "-s" "-w" ];
|
|
vendorHash = "sha256-fnM4ycqDyruCdCA1Cr4Ki48xeQiTG4l5dLVuAafEm14=";
|
|
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;
|
|
};
|
|
}
|