go-graft, gg: merge duplicated package (#387824)
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "gg";
|
||||
version = "0.2.19";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mzz2017";
|
||||
repo = "gg";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-DXW0NtFYvcCX4CgMs5/5HPaO9f9eFtw401wmJdCbHPU=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-fnM4ycqDyruCdCA1Cr4Ki48xeQiTG4l5dLVuAafEm14=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd gg \
|
||||
--bash completion/bash/gg \
|
||||
--fish completion/fish/gg.fish \
|
||||
--zsh completion/zsh/_gg
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mzz2017/gg";
|
||||
changelog = "https://github.com/mzz2017/gg/releases/tag/${src.rev}";
|
||||
description = "Command-line tool for one-click proxy in your research and development";
|
||||
license = licenses.agpl3Only;
|
||||
mainProgram = "gg";
|
||||
maintainers = with maintainers; [ oluceps ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,9 @@
|
||||
{ lib, fetchFromGitHub, buildGoModule }:
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildGoModule,
|
||||
installShellFiles,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "go-graft";
|
||||
@@ -8,20 +13,37 @@ buildGoModule rec {
|
||||
owner = "mzz2017";
|
||||
repo = "gg";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-DXW0NtFYvcCX4CgMs5/5HPaO9f9eFtw401wmJdCbHPU=";
|
||||
hash = "sha256-DXW0NtFYvcCX4CgMs5/5HPaO9f9eFtw401wmJdCbHPU=";
|
||||
};
|
||||
|
||||
env.CGO_ENABLED = 0;
|
||||
|
||||
ldflags = [ "-X github.com/mzz2017/gg/cmd.Version=${version}" "-s" "-w" ];
|
||||
ldflags = [
|
||||
"-X github.com/mzz2017/gg/cmd.Version=${version}"
|
||||
"-s"
|
||||
"-w"
|
||||
];
|
||||
|
||||
vendorHash = "sha256-fnM4ycqDyruCdCA1Cr4Ki48xeQiTG4l5dLVuAafEm14=";
|
||||
subPackages = [ "." ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd gg \
|
||||
--bash completion/bash/gg \
|
||||
--fish completion/fish/gg.fish \
|
||||
--zsh completion/zsh/_gg
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command-line tool for one-click proxy in your research and development without installing v2ray or anything else";
|
||||
changelog = "https://github.com/mzz2017/gg/releases/tag/${src.rev}";
|
||||
homepage = "https://github.com/mzz2017/gg";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ xyenon ];
|
||||
license = licenses.agpl3Only;
|
||||
maintainers = with maintainers; [
|
||||
xyenon
|
||||
oluceps
|
||||
];
|
||||
mainProgram = "gg";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
||||
@@ -529,6 +529,7 @@ mapAliases {
|
||||
gfortran49 = throw "'gfortran49' has been removed from nixpkgs"; # Added 2024-09-11
|
||||
gfortran7 = throw "gfortran7 has been removed from Nixpkgs, as it is unmaintained and obsolete"; # Added 2024-11-20
|
||||
gfortran8 = throw "gfortran8 has been removed from Nixpkgs, as it is unmaintained and obsolete"; # Added 2024-11-20
|
||||
gg = go-graft; # Added 2025-03-07
|
||||
ghostwriter = makePlasma5Throw "ghostwriter"; # Added 2023-03-18
|
||||
git-codeowners = throw "'git-codeowners' has been removed due to lack of upstream maintenance"; # Added 2025-01-25
|
||||
gmp5 = throw "'gmp5' has been removed as it is unmaintained. Consider using 'gmp' instead"; # Added 2024-10-28
|
||||
|
||||
Reference in New Issue
Block a user