From b6df5483bd60877cfdc8ffd68ab20c11dca69191 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Mon, 20 Nov 2023 00:30:33 +0100 Subject: [PATCH] Allow building terraform even though its nonfree Signed-off-by: magic_rb --- flake.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index ee50e1b..4da46c8 100644 --- a/flake.nix +++ b/flake.nix @@ -146,10 +146,16 @@ uterranix.terraform = pkgs: let - hpkgs = inputs.nixpkgs.legacyPackages.${pkgs.stdenv.system}.appendOverlays (with config.flake.overlays; [ - terraform-provider-vault - terraform-provider-influxdb-v2 - ]); + hpkgs = import inputs.nixpkgs { + inherit (pkgs.stdenv) system; + overlays = with self.overlays; [ + terraform-provider-vault + terraform-provider-influxdb-v2 + ]; + config.allowUnfreePredicate = lib'.traceVal (pkgs: builtins.elem (lib'.getName pkgs) [ + "terraform" + ]); + }; in hpkgs.terraform.withPlugins (p: [ p.consul