From 53ec369b90e2490987bc63870e52c7476dd2d690 Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Wed, 14 Jun 2023 12:22:27 +0200 Subject: [PATCH] Add influxdb-v2 Terraform provider Signed-off-by: Magic_RB --- flake.nix | 1 + overlays/terraform-provider-influxdb-v2.nix | 23 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 overlays/terraform-provider-influxdb-v2.nix diff --git a/flake.nix b/flake.nix index 5a07765..91ea50d 100644 --- a/flake.nix +++ b/flake.nix @@ -76,6 +76,7 @@ overlays/maildrop overlays/courier-unicode.nix overlays/ds3os.nix + overlays/terraform-provider-influxdb-v2.nix ]; flake.nixosModules = { diff --git a/overlays/terraform-provider-influxdb-v2.nix b/overlays/terraform-provider-influxdb-v2.nix new file mode 100644 index 0000000..6f8caf3 --- /dev/null +++ b/overlays/terraform-provider-influxdb-v2.nix @@ -0,0 +1,23 @@ +{ ... }: +{ + flake.overlays.terraform-provider-influxdb-v2 = + final: prev: + { + terraform = prev.terraform.overrideAttrs (old: { + passthru.plugins = + old.passthru.plugins + // { + influxdb-v2 = + old.passthru.plugins.mkProvider { + owner = "MagicRB"; + repo = "terraform-provider-influxdb-v2"; + rev = "4f10e465f9526b47d1ef97a8f2e109aa85a7d647"; + version = "0.4.6"; + hash = "sha256-/IQoA1CwYIafHbHKSZq7pZKFxefgd09fm0lnBW3r11Q="; + vendorHash = "sha256-g7Njs7psHFFSWk44CiV+blLrzpnB+L9HgMTx3lLMA8Q="; + provider-source-address = "registry.terraform.io/MagicRB/influxdb-v2"; + }; + }; + } ); + }; +}