Skip to content

Commit

Permalink
terraform: withPlugins should inherit meta from wrapped derivation (N…
Browse files Browse the repository at this point in the history
…ixOS#103396)

When using `terraform.withPlugins (ps: [])` the returned derivation does
not expose the meta of the underlying package. This change inherits meta
from the terraform derivation in the wrapper derivation to expose it.

(cherry picked from commit 380337d)
  • Loading branch information
kalbasit authored and anandsuresh committed Jan 27, 2021
1 parent b22992b commit e0fedeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/applications/networking/cluster/terraform/default.nix
Expand Up @@ -114,7 +114,7 @@ let
(orig: { passthru = orig.passthru // passthru; })
else
lib.appendToName "with-plugins" (stdenv.mkDerivation {
inherit (terraform) name;
inherit (terraform) name meta;
buildInputs = [ makeWrapper ];

buildCommand = pluginDir + ''
Expand Down

0 comments on commit e0fedeb

Please sign in to comment.