mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 05:00:19 +00:00
terraform: fixes the plugins
The plugins are now part of the binary and cause conflict when available in the $PATH as well.
This commit is contained in:
parent
cbb8ee28b5
commit
a4161ac355
@ -15,10 +15,10 @@ buildGoPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# prefix all the plugins with "terraform-"
|
# remove all plugins, they are part of the main binary now
|
||||||
for i in $bin/bin/*; do
|
for i in $bin/bin/*; do
|
||||||
if [[ $(basename $i) != terraform ]]; then
|
if [[ $(basename $i) != terraform ]]; then
|
||||||
mv -v $i $bin/bin/terraform-$(basename $i);
|
rm "$i"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user