summary refs log tree commit diff
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2018-10-16 19:35:45 +0200
committerGitHub <noreply@github.com>2018-10-16 19:35:45 +0200
commit7786575c6c0e1b010d46ad00b14d0bb5bf08d7d2 (patch)
tree3e9accfa49d21d61d344a65e308047013bea0ed1
parenteca462813d7586063deb5c9989ae9bcef29f9495 (diff)
downloadnixlib-7786575c6c0e1b010d46ad00b14d0bb5bf08d7d2.tar
nixlib-7786575c6c0e1b010d46ad00b14d0bb5bf08d7d2.tar.gz
nixlib-7786575c6c0e1b010d46ad00b14d0bb5bf08d7d2.tar.bz2
nixlib-7786575c6c0e1b010d46ad00b14d0bb5bf08d7d2.tar.lz
nixlib-7786575c6c0e1b010d46ad00b14d0bb5bf08d7d2.tar.xz
nixlib-7786575c6c0e1b010d46ad00b14d0bb5bf08d7d2.tar.zst
nixlib-7786575c6c0e1b010d46ad00b14d0bb5bf08d7d2.zip
terraform-providers.libvirt: fix plugin output (#48577)
Terraform depends on this binary name format to detect the provider
version.
-rw-r--r--pkgs/applications/networking/cluster/terraform-providers/libvirt/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/networking/cluster/terraform-providers/libvirt/default.nix b/pkgs/applications/networking/cluster/terraform-providers/libvirt/default.nix
index 2beceddc7fba..d24a5780315d 100644
--- a/pkgs/applications/networking/cluster/terraform-providers/libvirt/default.nix
+++ b/pkgs/applications/networking/cluster/terraform-providers/libvirt/default.nix
@@ -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";