Merge pull request #129346 from psibi/add-tfwitch

authored by Sandro and committed by GitHub 37898628 c2de97bd

+35 -1
+1 -1
maintainers/maintainer-list.nix
··· 8502 email = "sibi@psibi.in"; 8503 github = "psibi"; 8504 githubId = 737477; 8505 - name = "Sibi"; 8506 }; 8507 pstn = { 8508 email = "philipp@xndr.de";
··· 8502 email = "sibi@psibi.in"; 8503 github = "psibi"; 8504 githubId = 737477; 8505 + name = "Sibi Prabakaran"; 8506 }; 8507 pstn = { 8508 email = "philipp@xndr.de";
+32
pkgs/applications/networking/cluster/tfswitch/default.nix
···
··· 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 + }
+2
pkgs/top-level/all-packages.nix
··· 31536 31537 terranix = callPackage ../applications/networking/cluster/terranix {}; 31538 31539 tilt = callPackage ../applications/networking/cluster/tilt {}; 31540 31541 timeular = callPackage ../applications/office/timeular {};
··· 31536 31537 terranix = callPackage ../applications/networking/cluster/terranix {}; 31538 31539 + tfswitch = callPackage ../applications/networking/cluster/tfswitch {}; 31540 + 31541 tilt = callPackage ../applications/networking/cluster/tilt {}; 31542 31543 timeular = callPackage ../applications/office/timeular {};