Skip to content

Commit

Permalink
terraform-providers.libvirt: fix plugin output (#48577)
Browse files Browse the repository at this point in the history
Terraform depends on this binary name format to detect the provider
version.

(cherry picked from commit 7786575)
  • Loading branch information
zimbatm committed Oct 16, 2018
1 parent 4a74821 commit 68c70cf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# USAGE:
# install the following package globally or in nix-shell:
#
# (terraform.withPlugins (old: [terraform-provider-libvirt]))
# (terraform.withPlugins (p: [p.libvirt]))
#
# configuration.nix:
#
Expand Down Expand Up @@ -36,6 +36,10 @@ buildGoPackage rec {
# and wrapped to terraform via deecb4c1aab780047d79978c636eeb879dd68630
propagatedBuildInputs = [ cdrtools ];

# Terraform allow checking the provider versions, but this breaks
# if the versions are not provided via file paths.
postBuild = "mv go/bin/terraform-provider-libvirt{,_v${version}}";

meta = with stdenv.lib; {
homepage = https://github.com/dmacvicar/terraform-provider-libvirt;
description = "Terraform provider for libvirt";
Expand Down

0 comments on commit 68c70cf

Please sign in to comment.