From b652ea2f036b6377addc04481162d889fac39450 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 15 Aug 2019 16:28:42 +0100 Subject: [PATCH] feat(tools): Add Terraform 0.12 to local tools This is pre-configured with the GCP provider. --- default.nix | 1 + tools/bin/__dispatch.sh | 3 +++ tools/bin/terraform | 1 + 3 files changed, 5 insertions(+) create mode 120000 tools/bin/terraform diff --git a/default.nix b/default.nix index b433b1dfb..ba9e10856 100644 --- a/default.nix +++ b/default.nix @@ -12,6 +12,7 @@ let # Third-party projects (either vendored or modified from nixpkgs) go here: gitAppraise = pkgs.callPackage ./third_party/go/git-appraise/git-appraise {}; + terraform-gcp = pkgs.terraform_0_12.withPlugins(p: [ p.google ]); }; # The pinned commit here is identical to the public nixery.dev diff --git a/tools/bin/__dispatch.sh b/tools/bin/__dispatch.sh index d2f67d546..b0bbbf984 100755 --- a/tools/bin/__dispatch.sh +++ b/tools/bin/__dispatch.sh @@ -16,6 +16,9 @@ case "${TARGET_TOOL}" in stylish-haskell) attr="haskellPackages.stylish-haskell" ;; + terraform) + attr="terraform-gcp" + ;; *) echo "The tool '${TARGET_TOOL}' is currently not installed in this repository." exit 1 diff --git a/tools/bin/terraform b/tools/bin/terraform new file mode 120000 index 000000000..8390ec9c9 --- /dev/null +++ b/tools/bin/terraform @@ -0,0 +1 @@ +__dispatch.sh \ No newline at end of file