File tree Expand file tree Collapse file tree 3 files changed +29
-49
lines changed Expand file tree Collapse file tree 3 files changed +29
-49
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- { lib , fetchFromGitHub , buildGoModule } :
1+ {
2+ lib ,
3+ fetchFromGitHub ,
4+ buildGoModule ,
5+ installShellFiles ,
6+ } :
27
38buildGoModule rec {
49 pname = "go-graft" ;
@@ -8,20 +13,37 @@ buildGoModule rec {
813 owner = "mzz2017" ;
914 repo = "gg" ;
1015 rev = "v${ version } " ;
11- sha256 = "sha256-DXW0NtFYvcCX4CgMs5/5HPaO9f9eFtw401wmJdCbHPU=" ;
16+ hash = "sha256-DXW0NtFYvcCX4CgMs5/5HPaO9f9eFtw401wmJdCbHPU=" ;
1217 } ;
1318
1419 env . CGO_ENABLED = 0 ;
1520
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+
1727 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+ '' ;
1937
2038 meta = with lib ; {
2139 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 } " ;
2241 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+ ] ;
2547 mainProgram = "gg" ;
2648 platforms = platforms . linux ;
2749 } ;
Original file line number Diff line number Diff line change @@ -529,6 +529,7 @@ mapAliases {
529529 gfortran49 = throw "'gfortran49' has been removed from nixpkgs" ; # Added 2024-09-11
530530 gfortran7 = throw "gfortran7 has been removed from Nixpkgs, as it is unmaintained and obsolete" ; # Added 2024-11-20
531531 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
532533 ghostwriter = makePlasma5Throw "ghostwriter" ; # Added 2023-03-18
533534 git-codeowners = throw "'git-codeowners' has been removed due to lack of upstream maintenance" ; # Added 2025-01-25
534535 gmp5 = throw "'gmp5' has been removed as it is unmaintained. Consider using 'gmp' instead" ; # Added 2024-10-28
You can’t perform that action at this time.
0 commit comments