terraform-providers.libvirt: fix plugin output (#48577)
Terraform depends on this binary name format to detect the provider version.
This commit is contained in:
parent
eca462813d
commit
7786575c6c
|
@ -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:
|
||||
#
|
||||
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue