Merge pull request #176244 from aaronjheng/tgswitch

tgswitch: use buildGoModule

authored by Bobby Rong and committed by GitHub b71b7090 a2e0e3c6

+11 -3
+11 -3
pkgs/applications/networking/cluster/tgswitch/default.nix
··· 1 - { buildGoPackage, lib, fetchFromGitHub }: 2 - buildGoPackage rec { 3 pname = "tgswitch"; 4 version = "0.5.389"; 5 ··· 10 sha256 = "sha256-6hErfI7LEJFgOoJR8IF9jTSBwqbQYeGiwdeJShqxVQ0="; 11 }; 12 13 - goPackagePath = "github.com/warrensbox/tgswitch"; 14 15 meta = with lib; { 16 description = "A command line tool to switch between different versions of terragrunt"; ··· 19 maintainers = with maintainers; [ psibi ]; 20 }; 21 }
··· 1 + { buildGoModule, lib, fetchFromGitHub }: 2 + buildGoModule rec { 3 pname = "tgswitch"; 4 version = "0.5.389"; 5 ··· 10 sha256 = "sha256-6hErfI7LEJFgOoJR8IF9jTSBwqbQYeGiwdeJShqxVQ0="; 11 }; 12 13 + vendorSha256 = null; 14 + 15 + ldflags = [ "-s" "-w" ]; 16 + 17 + # There are many modifications need to be done to make tests run. For example: 18 + # 1. Network access 19 + # 2. Operation on `/var/empty` not permitted on macOS 20 + doCheck= false; 21 22 meta = with lib; { 23 description = "A command line tool to switch between different versions of terragrunt"; ··· 26 maintainers = with maintainers; [ psibi ]; 27 }; 28 } 29 +