3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/tgswitch/default.nix
Sibi Prabakaran a6abef6ed2
tgswitch: init at 0.5.378
Add tgswitch which allows to easily manage different terragrunt
versions for different projects.

Tested it locally on a NixOS machine:

```
❯ tgswitch --help

Usage: tgswitch [-hv] [-b value] [parameters ...]
 -b, --bin=value  Custom binary path. For example:
                  /Users/username/bin/terragrunt
 -h, --help       displays help message
 -v, --version    displays the version of tgswitch
Supply the terragrunt version as an argument, or choose from a menu
```
2021-11-18 22:29:14 +05:30

22 lines
583 B
Nix

{ buildGoPackage, lib, fetchFromGitHub }:
buildGoPackage rec {
pname = "tgswitch";
version = "0.5.378";
src = fetchFromGitHub {
owner = "warrensbox";
repo = "tgswitch";
rev = version;
sha256 = "0q2aqh75acbpkmvkws0rl3d5dzq3sisy637c0x6cnc88h34g3n3i";
};
goPackagePath = "github.com/warrensbox/tgswitch";
meta = with lib; {
description = "A command line tool to switch between different versions of terragrunt";
homepage = "https://github.com/warrensbox/tgswitch";
license = licenses.mit;
maintainers = with maintainers; [ psibi ];
};
}