about summary refs log tree commit diff
path: root/third_party/terraform-provider-glesys
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-01-27T10·33+0100
committersterni <sternenseemann@systemli.org>2022-01-28T10·43+0000
commit6a897551ccd04099dc93c052cb91fb768bea664b (patch)
tree2a4e7d46d7481c4958eb6c266000036b444ab8cc /third_party/terraform-provider-glesys
parent6908d960b24072043923adcd6ecc0aa128496187 (diff)
chore(3p): bump NixOS channels to 2022-01-27 r/3693
Use a nixos-unstable revision the channel has not yet advanced to (but
the tested jobset has succeeded already), so we'll benefit from the
polkit security update.

* //users/grfn/home/games: replace multimc with polymc.
  Seems like this is the conclusion in in the trademark saga.

* //third_party/terrform-provider-glesys: use new mkProvider interface
  See https://github.com/nixos/nixpkgs/commit/e7dbfd7ece0e

Change-Id: Ieb76a3d73c42ce1fa34050ac797fa4e3a905e8ef
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5075
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'third_party/terraform-provider-glesys')
-rw-r--r--third_party/terraform-provider-glesys/default.nix16
1 files changed, 6 insertions, 10 deletions
diff --git a/third_party/terraform-provider-glesys/default.nix b/third_party/terraform-provider-glesys/default.nix
index a944af34f99d..51582fd60929 100644
--- a/third_party/terraform-provider-glesys/default.nix
+++ b/third_party/terraform-provider-glesys/default.nix
@@ -3,21 +3,17 @@
 # Some TVL resources (DNS, object storage, ...) are hosted with them.
 { pkgs, ... }:
 
-pkgs.buildGoModule rec {
-  pname = "terraform-provider-glesys";
+pkgs.terraform-providers.mkProvider rec {
   version = "0.3.1";
 
-  src = pkgs.fetchFromGitHub {
-    owner = "glesys";
-    repo = pname;
-    rev = "v${version}";
-    sha256 = "1rcwzf31gdxjywkcnlq1nxv4y8fcrc2z2xrp73q61mglv01bqq8m";
-  };
+  owner = "glesys";
+  repo = "terraform-provider-glesys";
+  rev = "v${version}";
+  sha256 = "1rcwzf31gdxjywkcnlq1nxv4y8fcrc2z2xrp73q61mglv01bqq8m";
 
   vendorSha256 = "0g5g69absf0vmin0ff0anrxcgfq0bzx4iz3qci90p9xkvyph4nlw";
-  postInstall = "mv $out/bin/${pname}{,_v${version}}";
 
   # This provider is not officially published in the TF registry, so
   # we're giving it a fake source here.
-  passthru.provider-source-address = "registry.terraform.io/depot/glesys";
+  provider-source-address = "registry.terraform.io/depot/glesys";
 }