Add Nix derivations for generating Go and TypeScript API client bindings from authentik's OpenAPI schema: - source.nix: shared version (2025.12.4) and source fetch - client-go.nix: Go client from goauthentik/client-go repo - client-ts.nix: TypeScript fetch client from main schema.yml - api-go-vendor-hook.nix: setup hook to inject Go client into vendor dir - client-go-config.patch: OpenAPI generator config fix Ported from nixpkgs pkgs/by-name/au/authentik/package.nix. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
560 B
Nix
23 lines
560 B
Nix
# Shared source and version for all authentik build components.
|
|
# Target version: 2025.12.4 (matching nixpkgs reference derivation).
|
|
# Forge mirror: https://forge.ops.eblu.me/mirrors/authentik
|
|
{ fetchFromGitHub }:
|
|
|
|
let
|
|
version = "2025.12.4";
|
|
in
|
|
{
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "goauthentik";
|
|
repo = "authentik";
|
|
tag = "version/${version}";
|
|
hash = "sha256-alTyrMBbjZbw4jhEna8saabf93sqSrZCu+Z5xH3pZ7M=";
|
|
};
|
|
|
|
meta = {
|
|
description = "Authentication glue you need";
|
|
homepage = "https://goauthentik.io/";
|
|
};
|
|
}
|