terraform-providers.libvirt: fix plugin output (#48577)

Terraform depends on this binary name format to detect the provider
version.
This commit is contained in:
zimbatm 2018-10-16 19:35:45 +02:00 committed by GitHub
parent eca462813d
commit 7786575c6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
# USAGE: # USAGE:
# install the following package globally or in nix-shell: # install the following package globally or in nix-shell:
# #
# (terraform.withPlugins (old: [terraform-provider-libvirt])) # (terraform.withPlugins (p: [p.libvirt]))
# #
# configuration.nix: # configuration.nix:
# #
@ -36,6 +36,10 @@ buildGoPackage rec {
# and wrapped to terraform via deecb4c1aab780047d79978c636eeb879dd68630 # and wrapped to terraform via deecb4c1aab780047d79978c636eeb879dd68630
propagatedBuildInputs = [ cdrtools ]; 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; { meta = with stdenv.lib; {
homepage = https://github.com/dmacvicar/terraform-provider-libvirt; homepage = https://github.com/dmacvicar/terraform-provider-libvirt;
description = "Terraform provider for libvirt"; description = "Terraform provider for libvirt";