2022-06-04 13:39:05 +00:00
|
|
|
{ buildGoModule, lib, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
2021-11-18 16:59:14 +00:00
|
|
|
pname = "tgswitch";
|
2022-07-07 15:17:09 +00:00
|
|
|
version = "0.6.0";
|
2021-11-18 16:59:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "warrensbox";
|
|
|
|
repo = "tgswitch";
|
|
|
|
rev = version;
|
2022-07-07 15:17:09 +00:00
|
|
|
sha256 = "sha256-Q3Cef3B7hfVHLvW8Rx6IdH9g/3luDhpUMZ8TXVpb8gQ=";
|
2021-11-18 16:59:14 +00:00
|
|
|
};
|
|
|
|
|
2022-07-07 15:17:09 +00:00
|
|
|
vendorSha256 = "sha256-PlTdbA8Z2I2SWoG7oYG87VQfczx9zP1SCJx70UWOEog=";
|
2022-06-04 13:39:05 +00:00
|
|
|
|
|
|
|
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
|
2022-07-07 15:17:09 +00:00
|
|
|
doCheck = false;
|
2021-11-18 16:59:14 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-07-07 15:17:09 +00:00
|
|
|
description = "Command line tool to switch between different versions of terragrunt";
|
2021-11-18 16:59:14 +00:00
|
|
|
homepage = "https://github.com/warrensbox/tgswitch";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ psibi ];
|
|
|
|
};
|
|
|
|
}
|
2022-06-04 13:39:05 +00:00
|
|
|
|