Commit 4efd3432 authored by zowoq's avatar zowoq
Browse files

terraform: remove `remove plugins` from postInstall

hasn't been needed for a long time

also remove unneeded fetchpatch
parent 9ce1d14a
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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)
      '';