diff options
author | zimbatm <zimbatm@zimbatm.com> | 2018-09-28 16:02:51 +0100 |
---|---|---|
committer | Wael M. Nasreddine <wael.nasreddine@gmail.com> | 2018-09-28 11:22:27 -0700 |
commit | ef64786cda0607231707c29526555948c085a2d7 (patch) | |
tree | a5cfb84e1752e709031670cc634574a69c450b4f /pkgs/applications/networking/cluster/terraform/default.nix | |
parent | 7dadabb22c49de57bb6bef395f4b0474731e5eaf (diff) | |
download | nixlib-ef64786cda0607231707c29526555948c085a2d7.tar nixlib-ef64786cda0607231707c29526555948c085a2d7.tar.gz nixlib-ef64786cda0607231707c29526555948c085a2d7.tar.bz2 nixlib-ef64786cda0607231707c29526555948c085a2d7.tar.lz nixlib-ef64786cda0607231707c29526555948c085a2d7.tar.xz nixlib-ef64786cda0607231707c29526555948c085a2d7.tar.zst nixlib-ef64786cda0607231707c29526555948c085a2d7.zip |
terraform: move providers to terraform-providers
Before, providers were only built indirectly. Since proviers don't depend on terraform to build they can be moved into their own collection of packages. This also has the advantage that they can be reached directly using an attribute path (Eg: terraform-providers.nixos). Co-authored-by: Wael Nasreddine <wael.nasreddine@gmail.com>
Diffstat (limited to 'pkgs/applications/networking/cluster/terraform/default.nix')
-rw-r--r-- | pkgs/applications/networking/cluster/terraform/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/applications/networking/cluster/terraform/default.nix b/pkgs/applications/networking/cluster/terraform/default.nix index 1a88fea3d775..767eb94454d8 100644 --- a/pkgs/applications/networking/cluster/terraform/default.nix +++ b/pkgs/applications/networking/cluster/terraform/default.nix @@ -1,4 +1,11 @@ -{ stdenv, lib, buildEnv, buildGoPackage, fetchFromGitHub, makeWrapper }: +{ stdenv +, lib +, buildEnv +, buildGoPackage +, fetchFromGitHub +, makeWrapper +, terraform-providers +}: let goPackagePath = "github.com/hashicorp/terraform"; @@ -75,7 +82,7 @@ let }); in withPlugins (_: []); - plugins = import ./providers { inherit lib buildGoPackage fetchFromGitHub; }; + plugins = removeAttrs terraform-providers ["override" "overrideDerivation" "recurseForDerivations"]; in rec { terraform_0_8_5 = generic { version = "0.8.5"; |