Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
37 lines
848 B
Nix
37 lines
848 B
Nix
{
|
|
buildGoModule,
|
|
lib,
|
|
fetchFromGitHub,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "tgswitch";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "warrensbox";
|
|
repo = "tgswitch";
|
|
rev = version;
|
|
sha256 = "sha256-Q3Cef3B7hfVHLvW8Rx6IdH9g/3luDhpUMZ8TXVpb8gQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-PlTdbA8Z2I2SWoG7oYG87VQfczx9zP1SCJx70UWOEog=";
|
|
|
|
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 = "Command line tool to switch between different versions of terragrunt";
|
|
mainProgram = "tgswitch";
|
|
homepage = "https://github.com/warrensbox/tgswitch";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ psibi ];
|
|
};
|
|
}
|