terraform: remove remove plugins from postInstall

hasn't been needed for a long time

also remove unneeded fetchpatch
This commit is contained in:
zowoq 2023-04-01 08:27:28 +10:00
parent 9ce1d14a8b
commit 4efd34323c

View file

@ -8,7 +8,6 @@
, runtimeShell
, writeText
, terraform-providers
, fetchpatch
, installShellFiles
}:
@ -38,13 +37,6 @@ let
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
# remove all plugins, they are part of the main binary now
for i in $out/bin/*; do
if [[ $(basename $i) != terraform ]]; then
rm "$i"
fi
done
# https://github.com/posener/complete/blob/9a4745ac49b29530e07dc2581745a218b646b7a3/cmd/install/bash.go#L8
installShellCompletion --bash --name terraform <(echo complete -C terraform terraform)
'';