From 375eaf2b4fce26764ccddf347a0b422a82fe8e2b Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sat, 9 Apr 2022 11:04:53 +0200 Subject: [PATCH] terraform-full: Fix eval (#167857) https://github.com/NixOS/nixpkgs/pull/166792 made the aliases work, which was unexpected for terraform-full. Thanks to zowoq for reporting https://github.com/NixOS/nixpkgs/pull/166792#issuecomment-1092742313 --- .../networking/cluster/terraform-providers/default.nix | 5 ++++- pkgs/applications/networking/cluster/terraform/default.nix | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/default.nix b/pkgs/applications/networking/cluster/terraform-providers/default.nix index 0bdb6289a611..01c7a0a91983 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/default.nix +++ b/pkgs/applications/networking/cluster/terraform-providers/default.nix @@ -104,5 +104,8 @@ let ultradns = archived "2022/01"; vthunder = throw "provider was renamed to thunder on 2022/01"; }; + + # excluding aliases, used by terraform-full + actualProviders = automated-providers // special-providers; in -automated-providers // special-providers // removed-providers // { inherit mkProvider; } +actualProviders // removed-providers // { inherit actualProviders mkProvider; } diff --git a/pkgs/applications/networking/cluster/terraform/default.nix b/pkgs/applications/networking/cluster/terraform/default.nix index e6fa464df6b6..39283a8646e9 100644 --- a/pkgs/applications/networking/cluster/terraform/default.nix +++ b/pkgs/applications/networking/cluster/terraform/default.nix @@ -85,7 +85,7 @@ let passthru = { withPlugins = newplugins: withPlugins (x: newplugins x ++ actualPlugins); - full = withPlugins (p: lib.filter lib.isDerivation (lib.attrValues p)); + full = withPlugins (p: lib.filter lib.isDerivation (lib.attrValues p.actualProviders)); # Expose wrappers around the override* functions of the terraform # derivation.