terraform-provider: 2023.10.0 -> 2024.4.0

This commit is contained in:
WilliButz 2024-04-27 22:09:32 +02:00
parent 608c5dd4f5
commit d2a70db150
No known key found for this signature in database
GPG key ID: AB05DF703EB9DC70
2 changed files with 4 additions and 25 deletions

17
flake.lock generated
View file

@ -129,22 +129,6 @@
"type": "github"
}
},
"nixpkgs-23-05": {
"locked": {
"lastModified": 1704290814,
"narHash": "sha256-LWvKHp7kGxk/GEtlrGYV68qIvPHkU9iToomNFGagixU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "70bdadeb94ffc8806c0570eb5c2695ad29f0e421",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"dir": "lib",
@ -197,7 +181,6 @@
"flake-utils": "flake-utils",
"napalm": "napalm",
"nixpkgs": "nixpkgs",
"nixpkgs-23-05": "nixpkgs-23-05",
"poetry2nix": "poetry2nix"
}
},

View file

@ -12,9 +12,6 @@
# nixos-unstable required for go 1.22, until 24.05 release
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# will be dropped with the next update of the terraform provider
nixpkgs-23-05.url = "github:NixOS/nixpkgs/nixos-23.05";
poetry2nix = {
url = "github:nix-community/poetry2nix";
inputs = {
@ -38,7 +35,6 @@
outputs = inputs@{
self,
nixpkgs,
nixpkgs-23-05,
flake-parts,
poetry2nix,
napalm,
@ -98,17 +94,17 @@
manage;
# terraform provider
terraform-provider-authentik = inputs.nixpkgs-23-05.legacyPackages.${system}.buildGo118Module rec {
terraform-provider-authentik = inputs.nixpkgs.legacyPackages.${system}.buildGo121Module rec {
pname = "terraform-provider-authentik";
version = "2023.10.0";
version = "2024.4.0";
src = pkgs.fetchFromGitHub {
owner = "goauthentik";
repo = pname;
rev = "v${version}";
sha256 = "sha256-eyWpssvYe3KKr2vfMRBfE4W1xrZZFeP55VmAQoitamc=";
sha256 = "sha256-Uyh/XkAjukJwVBu43H9Eq8ve4eF3nfYsK0jC6KdfZ3U=";
};
doCheck = false; # tests are run against authentik -> vm test
vendorSha256 = "sha256-aDExL3uFLhCqFibrepb2zVOJ7aW5CWjuqtx73w7p1qc=";
vendorHash = "sha256-HXrct5K7BjAdExVZM4o408YIqLQs3PeK0zwVAE93/PA=";
postInstall = ''
path="$out/libexec/terraform-providers/registry.terraform.io/goauthentik/authentik/${version}/''${GOOS}_''${GOARCH}/"
mkdir -p "$path"