diff options
author | Bobby Rong <rjl931189261@126.com> | 2022-06-08 20:52:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-08 20:52:33 +0800 |
commit | b71b7090be463375abb90d2123d1a239e8083047 (patch) | |
tree | 9c01cc459e0c6b171cdbf6ad68279221f0622456 | |
parent | a2e0e3c647e9f2304d16d7a761adea1c963b4139 (diff) | |
parent | 2c01c6b3a967caaac12307da234de700c316dbb1 (diff) |
Merge pull request #176244 from aaronjheng/tgswitch
tgswitch: use buildGoModule
-rw-r--r-- | pkgs/applications/networking/cluster/tgswitch/default.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/applications/networking/cluster/tgswitch/default.nix b/pkgs/applications/networking/cluster/tgswitch/default.nix index 5f669a6b9d8a3..44c16bd4668df 100644 --- a/pkgs/applications/networking/cluster/tgswitch/default.nix +++ b/pkgs/applications/networking/cluster/tgswitch/default.nix @@ -1,5 +1,5 @@ -{ buildGoPackage, lib, fetchFromGitHub }: -buildGoPackage rec { +{ buildGoModule, lib, fetchFromGitHub }: +buildGoModule rec { pname = "tgswitch"; version = "0.5.389"; @@ -10,7 +10,14 @@ buildGoPackage rec { sha256 = "sha256-6hErfI7LEJFgOoJR8IF9jTSBwqbQYeGiwdeJShqxVQ0="; }; - goPackagePath = "github.com/warrensbox/tgswitch"; + vendorSha256 = null; + + ldflags = [ "-s" "-w" ]; + + # There are many modifications need to be done to make tests run. For example: + # 1. Network access + # 2. Operation on `/var/empty` not permitted on macOS + doCheck= false; meta = with lib; { description = "A command line tool to switch between different versions of terragrunt"; @@ -19,3 +26,4 @@ buildGoPackage rec { maintainers = with maintainers; [ psibi ]; }; } + |