From 97830cbb025ce92d58921b12d528afbaa42000c4 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 7 Dec 2023 15:20:12 +1000 Subject: [PATCH] opentofu: fix `passthru.full` --- pkgs/applications/networking/cluster/opentofu/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/opentofu/default.nix b/pkgs/applications/networking/cluster/opentofu/default.nix index 86e7e7f62166..b97e565b54c4 100644 --- a/pkgs/applications/networking/cluster/opentofu/default.nix +++ b/pkgs/applications/networking/cluster/opentofu/default.nix @@ -36,7 +36,7 @@ let patches = [ ./provider-path-0_15.patch ]; passthru = { - inherit plugins withPlugins; + inherit full plugins withPlugins; tests = { inherit opentofu_plugins_test; }; }; @@ -66,6 +66,8 @@ let }; }; + full = withPlugins (p: lib.filter lib.isDerivation (lib.attrValues p.actualProviders)); + opentofu_plugins_test = let mainTf = writeText "main.tf" '' terraform { @@ -109,7 +111,6 @@ let passthru = { withPlugins = newplugins: withPlugins (x: newplugins x ++ actualPlugins); - full = withPlugins (p: lib.filter lib.isDerivation (lib.attrValues p.actualProviders)); # Expose wrappers around the override* functions of the terraform # derivation.