terraform: withPlugins should inherit meta from wrapped derivation (#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.
This commit is contained in:
Wael Nasreddine
2020-11-11 11:36:31 -08:00
committed by GitHub
parent ad23775799
commit 380337da10

View File

@@ -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 + ''