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 { 1 + { buildGoModule, lib, fetchFromGitHub }: 2 + buildGoModule rec { 3 3 pname = "tgswitch"; 4 4 version = "0.5.389"; 5 5 ··· 10 10 sha256 = "sha256-6hErfI7LEJFgOoJR8IF9jTSBwqbQYeGiwdeJShqxVQ0="; 11 11 }; 12 12 13 - goPackagePath = "github.com/warrensbox/tgswitch"; 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; 14 21 15 22 meta = with lib; { 16 23 description = "A command line tool to switch between different versions of terragrunt"; ··· 19 26 maintainers = with maintainers; [ psibi ]; 20 27 }; 21 28 } 29 +