git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #129346 from psibi/add-tfwitch
commit378986286f572c703c8ba970e2b1d9e32f5dfa81 authorSandro <sandro.jaeckel@gmail.com> dateTue 6 Jul 2021, 17:03 (5 years ago) parentc2de97bc8f3505
3 files changed+35−1
maintainers/maintainer-list.nix+1−1 pkgs/applications/networking/cluster/tfswitch/default.nix+32 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+1−1
@@ -8502,7 +8502,7 @@
85028502 email = "sibi@psibi.in";
85038503 github = "psibi";
85048504 githubId = 737477;
8505− name = "Sibi";
8505+ name = "Sibi Prabakaran";
85068506 };
85078507 pstn = {
85088508 email = "philipp@xndr.de";
pkgs/applications/networking/cluster/tfswitch/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ buildGoModule, lib, fetchFromGitHub }:
2+buildGoModule rec {
3+ pname = "tfswitch";
4+ version = "0.12.1119";
5+
6+ src = fetchFromGitHub {
7+ owner = "warrensbox";
8+ repo = "terraform-switcher";
9+ rev = version;
10+ sha256 = "1xsmr4hnmdg2il3rp39cyhv55ha4qcilcsr00iiija3bzxsm4rya";
11+ };
12+
13+ vendorSha256 = "0mpm4m07v8w02g95cnj73m5gvd118id4ag2pym8d9r2svkyz5n70";
14+
15+ # Disable tests since it requires network access and relies on the
16+ # presence of release.hashicorp.com
17+ doCheck = false;
18+
19+ runVend = true;
20+
21+ postInstall = ''
22+ # The binary is named tfswitch
23+ mv $out/bin/terraform-switcher $out/bin/tfswitch
24+ '';
25+
26+ meta = with lib; {
27+ description = "A command line tool to switch between different versions of terraform";
28+ homepage = "https://github.com/warrensbox/terraform-switcher";
29+ license = licenses.mit;
30+ maintainers = with maintainers; [ psibi ];
31+ };
32+}
pkgs/top-level/all-packages.nix+2
@@ -31536,6 +31536,8 @@ in
3153631536
3153731537 terranix = callPackage ../applications/networking/cluster/terranix {};
3153831538
31539+ tfswitch = callPackage ../applications/networking/cluster/tfswitch {};
31540+
3153931541 tilt = callPackage ../applications/networking/cluster/tilt {};
3154031542
3154131543 timeular = callPackage ../applications/office/timeular {};