Merge pull request #129346 from psibi/add-tfwitch
This commit is contained in:
commit
378986286f
3 changed files with 35 additions and 1 deletions
|
@ -8502,7 +8502,7 @@
|
||||||
email = "sibi@psibi.in";
|
email = "sibi@psibi.in";
|
||||||
github = "psibi";
|
github = "psibi";
|
||||||
githubId = 737477;
|
githubId = 737477;
|
||||||
name = "Sibi";
|
name = "Sibi Prabakaran";
|
||||||
};
|
};
|
||||||
pstn = {
|
pstn = {
|
||||||
email = "philipp@xndr.de";
|
email = "philipp@xndr.de";
|
||||||
|
|
32
pkgs/applications/networking/cluster/tfswitch/default.nix
Normal file
32
pkgs/applications/networking/cluster/tfswitch/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ buildGoModule, lib, fetchFromGitHub }:
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "tfswitch";
|
||||||
|
version = "0.12.1119";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "warrensbox";
|
||||||
|
repo = "terraform-switcher";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1xsmr4hnmdg2il3rp39cyhv55ha4qcilcsr00iiija3bzxsm4rya";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "0mpm4m07v8w02g95cnj73m5gvd118id4ag2pym8d9r2svkyz5n70";
|
||||||
|
|
||||||
|
# Disable tests since it requires network access and relies on the
|
||||||
|
# presence of release.hashicorp.com
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
runVend = true;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
# The binary is named tfswitch
|
||||||
|
mv $out/bin/terraform-switcher $out/bin/tfswitch
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A command line tool to switch between different versions of terraform";
|
||||||
|
homepage = "https://github.com/warrensbox/terraform-switcher";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ psibi ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -31536,6 +31536,8 @@ in
|
||||||
|
|
||||||
terranix = callPackage ../applications/networking/cluster/terranix {};
|
terranix = callPackage ../applications/networking/cluster/terranix {};
|
||||||
|
|
||||||
|
tfswitch = callPackage ../applications/networking/cluster/tfswitch {};
|
||||||
|
|
||||||
tilt = callPackage ../applications/networking/cluster/tilt {};
|
tilt = callPackage ../applications/networking/cluster/tilt {};
|
||||||
|
|
||||||
timeular = callPackage ../applications/office/timeular {};
|
timeular = callPackage ../applications/office/timeular {};
|
||||||
|
|
Loading…
Reference in a new issue