lol

go-graft, gg: merge duplicated package (#387824)

authored by

Aleksana and committed by
GitHub
8a97acdb 44e1bd5a

+29 -49
-43
pkgs/by-name/gg/gg/package.nix
··· 1 - { 2 - lib, 3 - buildGoModule, 4 - fetchFromGitHub, 5 - installShellFiles, 6 - }: 7 - buildGoModule rec { 8 - pname = "gg"; 9 - version = "0.2.19"; 10 - 11 - src = fetchFromGitHub { 12 - owner = "mzz2017"; 13 - repo = "gg"; 14 - rev = "v${version}"; 15 - hash = "sha256-DXW0NtFYvcCX4CgMs5/5HPaO9f9eFtw401wmJdCbHPU="; 16 - }; 17 - 18 - vendorHash = "sha256-fnM4ycqDyruCdCA1Cr4Ki48xeQiTG4l5dLVuAafEm14="; 19 - 20 - ldflags = [ 21 - "-s" 22 - "-w" 23 - ]; 24 - 25 - nativeBuildInputs = [ installShellFiles ]; 26 - 27 - postInstall = '' 28 - installShellCompletion --cmd gg \ 29 - --bash completion/bash/gg \ 30 - --fish completion/fish/gg.fish \ 31 - --zsh completion/zsh/_gg 32 - ''; 33 - 34 - meta = with lib; { 35 - homepage = "https://github.com/mzz2017/gg"; 36 - changelog = "https://github.com/mzz2017/gg/releases/tag/${src.rev}"; 37 - description = "Command-line tool for one-click proxy in your research and development"; 38 - license = licenses.agpl3Only; 39 - mainProgram = "gg"; 40 - maintainers = with maintainers; [ oluceps ]; 41 - platforms = platforms.linux; 42 - }; 43 - }
+28 -6
pkgs/by-name/go/go-graft/package.nix
··· 1 - { lib, fetchFromGitHub, buildGoModule }: 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + buildGoModule, 5 + installShellFiles, 6 + }: 2 7 3 8 buildGoModule rec { 4 9 pname = "go-graft"; ··· 8 13 owner = "mzz2017"; 9 14 repo = "gg"; 10 15 rev = "v${version}"; 11 - sha256 = "sha256-DXW0NtFYvcCX4CgMs5/5HPaO9f9eFtw401wmJdCbHPU="; 16 + hash = "sha256-DXW0NtFYvcCX4CgMs5/5HPaO9f9eFtw401wmJdCbHPU="; 12 17 }; 13 18 14 19 env.CGO_ENABLED = 0; 15 20 16 - ldflags = [ "-X github.com/mzz2017/gg/cmd.Version=${version}" "-s" "-w" ]; 21 + ldflags = [ 22 + "-X github.com/mzz2017/gg/cmd.Version=${version}" 23 + "-s" 24 + "-w" 25 + ]; 26 + 17 27 vendorHash = "sha256-fnM4ycqDyruCdCA1Cr4Ki48xeQiTG4l5dLVuAafEm14="; 18 - subPackages = [ "." ]; 28 + 29 + nativeBuildInputs = [ installShellFiles ]; 30 + 31 + postInstall = '' 32 + installShellCompletion --cmd gg \ 33 + --bash completion/bash/gg \ 34 + --fish completion/fish/gg.fish \ 35 + --zsh completion/zsh/_gg 36 + ''; 19 37 20 38 meta = with lib; { 21 39 description = "Command-line tool for one-click proxy in your research and development without installing v2ray or anything else"; 40 + changelog = "https://github.com/mzz2017/gg/releases/tag/${src.rev}"; 22 41 homepage = "https://github.com/mzz2017/gg"; 23 - license = licenses.agpl3Plus; 24 - maintainers = with maintainers; [ xyenon ]; 42 + license = licenses.agpl3Only; 43 + maintainers = with maintainers; [ 44 + xyenon 45 + oluceps 46 + ]; 25 47 mainProgram = "gg"; 26 48 platforms = platforms.linux; 27 49 };
+1
pkgs/top-level/aliases.nix
··· 529 529 gfortran49 = throw "'gfortran49' has been removed from nixpkgs"; # Added 2024-09-11 530 530 gfortran7 = throw "gfortran7 has been removed from Nixpkgs, as it is unmaintained and obsolete"; # Added 2024-11-20 531 531 gfortran8 = throw "gfortran8 has been removed from Nixpkgs, as it is unmaintained and obsolete"; # Added 2024-11-20 532 + gg = go-graft; # Added 2025-03-07 532 533 ghostwriter = makePlasma5Throw "ghostwriter"; # Added 2023-03-18 533 534 git-codeowners = throw "'git-codeowners' has been removed due to lack of upstream maintenance"; # Added 2025-01-25 534 535 gmp5 = throw "'gmp5' has been removed as it is unmaintained. Consider using 'gmp' instead"; # Added 2024-10-28