From 4775b1544f6cd05fc2cbee73c1e3c011bfcfd61d Mon Sep 17 00:00:00 2001 From: magic_rb Date: Sun, 29 Oct 2023 17:47:35 +0100 Subject: [PATCH] Fix overlay for InfluxDBv2 Terraform provider Signed-off-by: magic_rb --- overlays/terraform-provider-influxdb-v2.nix | 26 +++++++++------------ 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/overlays/terraform-provider-influxdb-v2.nix b/overlays/terraform-provider-influxdb-v2.nix index 6f8caf3..e3f5d2c 100644 --- a/overlays/terraform-provider-influxdb-v2.nix +++ b/overlays/terraform-provider-influxdb-v2.nix @@ -3,21 +3,17 @@ 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"; - }; + terraform-providers = prev.terraform-providers // { + influxdb-v2 = + prev.terraform-providers.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"; }; - } ); + }; }; }