From 29ab659a431f66feff48736ebd754d017dccb72a Mon Sep 17 00:00:00 2001 From: Quinn Unger Date: Thu, 26 Nov 2026 14:12:44 +0000 Subject: [PATCH] zitadel: init at 4.20.3 from nixpkgs PR 561044 --- flake.nix | 53 +++- pkgs/by-name/protoc-gen-js/package.nix | 102 ++++++ .../login-use-local-lato-font.patch | 23 ++ pkgs/by-name/zitadel-login/package.nix | 118 +++++++ pkgs/by-name/zitadel/console.nix | 95 ++++++ pkgs/by-name/zitadel/javascript.nix | 72 +++++ pkgs/by-name/zitadel/package.nix | 292 ++++++++++++++++++ 7 files changed, 738 insertions(+), 17 deletions(-) create mode 100644 pkgs/by-name/protoc-gen-js/package.nix create mode 100644 pkgs/by-name/zitadel-login/login-use-local-lato-font.patch create mode 100644 pkgs/by-name/zitadel-login/package.nix create mode 100644 pkgs/by-name/zitadel/console.nix create mode 100644 pkgs/by-name/zitadel/javascript.nix create mode 100644 pkgs/by-name/zitadel/package.nix diff --git a/flake.nix b/flake.nix index 41537cb..c0a3d99 100644 --- a/flake.nix +++ b/flake.nix @@ -28,7 +28,7 @@ lib.warn "${pname} is available in upstream nixpkgs. You don't need the moppkgs flake for this package anymore!" pkgs.${pname}; - upstreamedPackages = + markUpstreamList = pnames: builtins.listToAttrs ( map (name: { @@ -39,22 +39,40 @@ in { packages.${system} = - (lib.packagesFromDirectoryRecursive { - inherit (pkgs) callPackage; - directory = ./pkgs/by-name; - }) - // { - quartusPackages = - lib.warn - "quartusPackages has been renamed to quartus-prime. Consider using upstream quartus-prime-{lite,standard,pro} packages." - self.packages.${system}.quartus-prime; - } - // (upstreamedPackages [ - "slang-server" - "quartus-prime-lite" - "quartus-prime-standard" - "quartus-prime-pro" - ]); + lib.pipe + (lib.packagesFromDirectoryRecursive { + inherit (pkgs) callPackage newScope; + directory = ./pkgs/by-name; + }) + [ + ( + ps: + lib.removeAttrs ps [ + "callPackage" + "newScope" + "overrideScope" + "packages" + "recurseForDerivations" + ] + ) + ( + ps: + lib.mergeAttrs ps ( + { + quartusPackages = + lib.warn + "quartusPackages has been renamed to quartus-prime. Consider using upstream quartus-prime-{lite,standard,pro} packages." + self.packages.${system}.quartus-prime; + } + // (markUpstreamList [ + "slang-server" + "quartus-prime-lite" + "quartus-prime-standard" + "quartus-prime-pro" + ]) + ) + ) + ]; legacyPackages.${system} = self.packages.${system}; checks.${system} = let @@ -62,6 +80,7 @@ in { inherit (moppkgs) + brow6el bandcampsync dnsfmt leaf-markdown diff --git a/pkgs/by-name/protoc-gen-js/package.nix b/pkgs/by-name/protoc-gen-js/package.nix new file mode 100644 index 0000000..78fef72 --- /dev/null +++ b/pkgs/by-name/protoc-gen-js/package.nix @@ -0,0 +1,102 @@ +{ + stdenv, + gcc14Stdenv, + lib, + buildBazelPackage, + bazel_7, + fetchFromGitHub, + cctools, +}: + +let + # fails to build with gcc15, see https://github.com/NixOS/nixpkgs/issues/475586 + buildBazelPackage' = + if stdenv.cc.isGNU then + buildBazelPackage.override { + stdenv = gcc14Stdenv; + } + else + buildBazelPackage; + + # Since 4.0.0 the project resolves its dependencies with bzlmod instead of a + # WORKSPACE file. Bazel needs the registry to compute the main repo mapping in + # the (sandboxed, network-less) build phase as well, so pin a checkout of the + # Bazel Central Registry instead of letting Bazel reach out to + # https://bcr.bazel.build. + registry = fetchFromGitHub { + owner = "bazelbuild"; + repo = "bazel-central-registry"; + rev = "0f256a72067e42d62bb568cc2619f98deed139e2"; + hash = "sha256-OcMLg0KiAQOJZLH8r+QkeQ9bxcEc4L0dCgyUv5PkLQk="; + }; +in +buildBazelPackage' rec { + pname = "protoc-gen-js"; + version = "4.0.2"; + + src = fetchFromGitHub { + owner = "protocolbuffers"; + repo = "protobuf-javascript"; + rev = "v${version}"; + hash = "sha256-vFTR7dwquZht4st90bFQ9CJMYBPbL+DWO0uQ3xsXIBU="; + }; + + bazel = bazel_7; + bazelFlags = [ + "--registry" + "file://${registry}" + ]; + bazelTargets = [ "generator:protoc-gen-js" ]; + bazelBuildFlags = lib.optionals stdenv.cc.isClang [ + "--cxxopt=-x" + "--cxxopt=c++" + "--host_cxxopt=-x" + "--host_cxxopt=c++" + ]; + removeRulesCC = false; + + env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { + LIBTOOL = "${cctools}/bin/libtool"; + }; + + fetchAttrs = { + preInstall = '' + # Bazel generates these repositories by inspecting the build host, so they + # must not be captured in the fixed-output deps tarball: they leak store + # paths into it (which trips allowedRequisites) and they pin the host CPU, + # which would make the single hash below wrong on every platform but the + # one it was generated on. Bazel regenerates all of them offline during the + # build phase. + # + # buildBazelPackage already drops the unprefixed `local_*` repositories, + # but since 4.0.0 the project builds with bzlmod, which namespaces them by + # the module extension that creates them (`~` separator on Bazel 7, `+` on + # Bazel 8+) so the plain globs no longer match. The ones that matter here: + # + # *~local_config_cc_toolchains registers @local_config_cc//:cc-compiler-k8 + # *~local_config_shell embeds the absolute path of the build shell + # *~host_platform (already handled before the bzlmod switch) + rm -rf "$bazelOut"/external/*[~+]{host_platform,local_config_*} + ''; + + hash = "sha256-bc+VwWhHzXIblFGYf8gfRTZvAiBY4L9L9texuJlxRYI="; + }; + + buildAttrs.installPhase = '' + mkdir -p $out/bin + install -Dm755 bazel-bin/generator/protoc-gen-js $out/bin/ + ''; + + meta = { + description = "Protobuf plugin for generating JavaScript code"; + mainProgram = "protoc-gen-js"; + homepage = "https://github.com/protocolbuffers/protobuf-javascript"; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + license = with lib.licenses; [ + asl20 + bsd3 + ]; + sourceProvenance = [ lib.sourceTypes.fromSource ]; + maintainers = [ lib.maintainers.Mop-u ]; + }; +} diff --git a/pkgs/by-name/zitadel-login/login-use-local-lato-font.patch b/pkgs/by-name/zitadel-login/login-use-local-lato-font.patch new file mode 100644 index 0000000..845fe05 --- /dev/null +++ b/pkgs/by-name/zitadel-login/login-use-local-lato-font.patch @@ -0,0 +1,23 @@ +--- a/apps/login/src/app/(login)/layout.tsx ++++ b/apps/login/src/app/(login)/layout.tsx +@@ -12,13 +12,16 @@ import { getAllowedLanguages } from "@/lib/zitadel"; + import * as Tooltip from "@radix-ui/react-tooltip"; + import type { Metadata } from "next"; + import { getTranslations } from "next-intl/server"; +-import { Lato } from "next/font/google"; ++import localFont from "next/font/local"; + import { headers } from "next/headers"; + import React, { Suspense } from "react"; + +-const lato = Lato({ +- weight: ["400", "700", "900"], +- subsets: ["latin"], ++const lato = localFont({ ++ src: [ ++ { path: "./fonts/Lato-Regular.ttf", weight: "400", style: "normal" }, ++ { path: "./fonts/Lato-Bold.ttf", weight: "700", style: "normal" }, ++ { path: "./fonts/Lato-Black.ttf", weight: "900", style: "normal" }, ++ ], + }); + + export async function generateMetadata(): Promise { diff --git a/pkgs/by-name/zitadel-login/package.nix b/pkgs/by-name/zitadel-login/package.nix new file mode 100644 index 0000000..b2d9ae7 --- /dev/null +++ b/pkgs/by-name/zitadel-login/package.nix @@ -0,0 +1,118 @@ +{ + fetchPnpmDeps, + lib, + stdenv, + + lato, + makeWrapper, + nodejs, + pnpm_10, + pnpmConfigHook, + + # Login V2 is built and deployed independently of the API server, but from + # the same source at the same version. The source pin and the generated + # packages/zitadel-proto are taken from there. + zitadel, +}: + +let + pnpm = pnpm_10; +in +stdenv.mkDerivation (finalAttrs: { + pname = "zitadel-login"; + inherit (zitadel) src version; + + strictDeps = true; + __structuredAttrs = true; + + # The login app needs different workspace packages out of the + # repository-wide pnpm-lock.yaml than the console does, so this store is its + # own rather than zitadel's. + pnpmWorkspaces = [ + "@zitadel/client" + "@zitadel/login" + "@zitadel/proto" + ]; + pnpmDeps = fetchPnpmDeps { + inherit (finalAttrs) + pname + version + src + pnpmWorkspaces + ; + inherit pnpm; + fetcherVersion = 4; + hash = "sha256-qxj789BRq1PO5i7KmiSuShyXateUzTQiYqiwb8Udur0="; + }; + + nativeBuildInputs = [ + makeWrapper + nodejs + pnpm + pnpmConfigHook + ]; + + env = { + NODE_OPTIONS = "--max-old-space-size=8192"; + NEXT_TELEMETRY_DISABLED = "1"; + }; + + # `next/font/google` downloads Lato from fonts.googleapis.com at build time, + # which cannot work in the sandbox. Serve the same font from nixpkgs instead. + patches = [ ./login-use-local-lato-font.patch ]; + + postPatch = '' + mkdir -p 'apps/login/src/app/(login)/fonts' + install -m644 ${lato}/share/fonts/lato/Lato-{Regular,Bold,Black}.ttf \ + 'apps/login/src/app/(login)/fonts/' + ''; + + preBuild = '' + cp -r ${zitadel.protoPackageGenerated}/* packages/zitadel-proto/ + chmod -R u+w packages/zitadel-proto + ''; + + # Upstream builds this with the `build` target in apps/login/project.json, + # which nx.json's targetDefaults make depend on the builds of the workspace + # packages it uses. + buildPhase = '' + runHook preBuild + + pushd packages/zitadel-client + pnpm run build + popd + + pushd apps/login + pnpm run build + popd + + runHook postBuild + ''; + + # The Next.js standalone bundle expects to be run from its own root, the way + # apps/login/Dockerfile does (`node apps/login/server.js`). + installPhase = '' + runHook preInstall + + mkdir -p $out/share/zitadel-login + cp -r apps/login/.next/standalone/. $out/share/zitadel-login/ + + makeWrapper ${lib.getExe' nodejs "node"} $out/bin/zitadel-login \ + --chdir $out/share/zitadel-login \ + --add-flags $out/share/zitadel-login/apps/login/server.js + + runHook postInstall + ''; + + meta = { + description = "Login UI (v2) for the ZITADEL identity and access management platform"; + homepage = "https://zitadel.com/"; + downloadPage = "https://github.com/zitadel/zitadel/releases"; + # apps/login/ is MIT-licensed (LICENSING.md, apps/login/LICENSE) + license = lib.licenses.mit; + sourceProvenance = [ lib.sourceTypes.fromSource ]; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + maintainers = [ lib.maintainers.Mop-u ]; + mainProgram = "zitadel-login"; + }; +}) diff --git a/pkgs/by-name/zitadel/console.nix b/pkgs/by-name/zitadel/console.nix new file mode 100644 index 0000000..7b43d40 --- /dev/null +++ b/pkgs/by-name/zitadel/console.nix @@ -0,0 +1,95 @@ +{ + generateProtobufCode, + jsDeps, + version, + zitadelRepo, +}: + +{ + lib, + stdenv, + + grpc-gateway, + nodejs, + pnpmConfigHook, + protoc-gen-grpc-web, + protoc-gen-js, +}: + +let + # Upstream generates this from console/ with + # `buf generate ../proto --include-imports --include-wkt` (the `generate` + # target in console/project.json). Here the same generators run against + # protoImage instead of the proto tree. + consoleProtobufGenerated = generateProtobufCode { + pname = "zitadel-console"; + inherit version; + nativeBuildInputs = [ + grpc-gateway + protoc-gen-grpc-web + protoc-gen-js + ]; + workDir = "console"; + bufArgs = "--include-imports --include-wkt"; + outputPath = "src/app/proto/generated"; + }; +in +stdenv.mkDerivation { + pname = "zitadel-console"; + inherit version; + + src = zitadelRepo; + + inherit (jsDeps) pnpmDeps; + pnpmWorkspaces = [ + "@zitadel/client" + "@zitadel/console" + "@zitadel/proto" + ]; + + nativeBuildInputs = [ + nodejs + jsDeps.pnpm + pnpmConfigHook + ]; + + env.NODE_OPTIONS = "--max-old-space-size=8192"; + + preBuild = '' + cp -r ${jsDeps.protoPackageGenerated}/* packages/zitadel-proto/ + mkdir -p console/src/app/proto + cp -r ${consoleProtobufGenerated} console/src/app/proto/generated + chmod -R u+w packages/zitadel-proto console/src/app/proto + ''; + + # console/project.json's `build` target resolves to the same-named script in + # console/package.json; nx.json's targetDefaults make it depend on the + # workspace packages' builds first. + buildPhase = '' + runHook preBuild + + pushd packages/zitadel-client + pnpm run build + popd + + pushd console + pnpm run build + popd + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + cp -r console/dist/console "$out" + runHook postInstall + ''; + + meta = { + description = "Management console for the ZITADEL identity and access management platform"; + homepage = "https://zitadel.com/"; + # console/ is not among the Apache-2.0 or MIT exceptions in LICENSING.md + license = lib.licenses.agpl3Only; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + }; +} diff --git a/pkgs/by-name/zitadel/javascript.nix b/pkgs/by-name/zitadel/javascript.nix new file mode 100644 index 0000000..2d1d5cd --- /dev/null +++ b/pkgs/by-name/zitadel/javascript.nix @@ -0,0 +1,72 @@ +{ + stdenv, + + buf, + fetchPnpmDeps, + nodejs, + pnpm_10, + pnpmConfigHook, + + protoImage, + version, + zitadelRepo, +}: + +let + pnpm = pnpm_10; + + # The workspace packages the console needs out of the repository-wide + # pnpm-lock.yaml. Individual derivations narrow this down again via their own + # `pnpmWorkspaces`. + pnpmDeps = fetchPnpmDeps { + pname = "zitadel"; + inherit version pnpm; + src = zitadelRepo; + fetcherVersion = 4; + pnpmWorkspaces = [ + "@zitadel/client" + "@zitadel/console" + "@zitadel/proto" + ]; + hash = "sha256-gJeaDmyC5LSVSZTq0nmnT6wo/VjKDHxN8Xgr66gX3jE="; + }; + + # Upstream generates packages/zitadel-proto with `buf generate ../../proto` + # (that package's `generate` script), using @bufbuild/protoc-gen-es from its + # own npm dev dependencies. Here the generator runs against protoImage + # instead of the proto tree, so it needs no network of its own. + protoPackageGenerated = stdenv.mkDerivation { + pname = "zitadel-proto-buf-generated"; + inherit version; + + src = zitadelRepo; + + inherit pnpmDeps; + pnpmWorkspaces = [ "@zitadel/proto" ]; + + nativeBuildInputs = [ + buf + nodejs + pnpm + pnpmConfigHook + ]; + + buildPhase = '' + runHook preBuild + cd packages/zitadel-proto + export PATH="$PWD/node_modules/.bin:$PATH" + HOME=$TMPDIR buf generate ${protoImage}#format=binpb + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + mkdir -p $out + cp -r es cjs types $out/ + runHook postInstall + ''; + }; +in +{ + inherit pnpm pnpmDeps protoPackageGenerated; +} diff --git a/pkgs/by-name/zitadel/package.nix b/pkgs/by-name/zitadel/package.nix new file mode 100644 index 0000000..b583bce --- /dev/null +++ b/pkgs/by-name/zitadel/package.nix @@ -0,0 +1,292 @@ +{ + stdenv, + stdenvNoCC, + buildGoModule, + callPackage, + fetchFromGitHub, + fetchpatch, + lib, + + buf, + cacert, + dart-sass, + grpc-gateway, + protoc-gen-connect-go, + protoc-gen-go, + protoc-gen-go-grpc, + protoc-gen-validate, + statik, + yq-go, +}: + +let + version = "4.20.3"; + zitadelRepo = fetchFromGitHub { + owner = "zitadel"; + repo = "zitadel"; + tag = "v${version}"; + hash = "sha256-gOyMm+6GWItFnoaypmST/RsuurBqy+K4U5mf60d5jyE="; + }; + goModulesHash = "sha256-IZM5DS7SbEgwPinkb/GA0aU9IqnLmPpP6C0Bp4Nh5Vc="; + + # protoc plugins that live inside the ZITADEL repo itself. Upstream installs + # them with `go install ./internal/protoc/...` (the `generate-install` target + # in apps/api/project.json). + buildZitadelProtocGen = + name: + buildGoModule { + pname = "protoc-gen-${name}"; + inherit version; + + src = zitadelRepo; + + proxyVendor = true; + vendorHash = goModulesHash; + + subPackages = [ "internal/protoc/protoc-gen-${name}" ]; + + doCheck = false; + }; + + protoc-gen-authoption = buildZitadelProtocGen "authoption"; + protoc-gen-zitadel = buildZitadelProtocGen "zitadel"; + + # proto/buf.lock pins dependencies that buf resolves from the Buf Schema + # Registry. Fetching them is the only step that needs network access, so it + # is the only fixed-output derivation: `buf export` writes each locked module + # out as plain .proto files, which do not depend on the buf version that + # fetches them. Compiling is left to protoImage, because the bytes of a buf + # image do change between buf releases. + protoDeps = stdenvNoCC.mkDerivation { + pname = "zitadel-proto-deps"; + inherit version; + + src = zitadelRepo; + + nativeBuildInputs = [ + buf + cacert + yq-go + ]; + + dontConfigure = true; + dontBuild = true; + dontFixup = true; + + # $out// for every dependency in buf.lock + installPhase = '' + runHook preInstall + export HOME=$TMPDIR + yq '.deps[] | .remote + "/" + .owner + "/" + .repository + ":" + .commit' proto/buf.lock | + while read -r module; do + name=''${module%%:*} + buf export "$module" -o "$out/''${name#*/}" + done + runHook postInstall + ''; + + outputHashMode = "recursive"; + outputHash = "sha256-rBC6YncTdLSnTlaYKCNPmEAjZYVEM0qogQo9xZdq3SY="; + }; + + # The proto workspace as a descriptor set, built offline: the exported + # dependencies become local workspace modules in place of the BSR ones. + # + # $out is the image file itself and carries no `.binpb` suffix, so every + # `buf generate` below has to name its format explicitly. + protoImage = stdenvNoCC.mkDerivation { + pname = "zitadel-proto-image"; + inherit version; + + src = zitadelRepo; + + nativeBuildInputs = [ + buf + yq-go + ]; + + buildPhase = '' + runHook preBuild + + cp -r --no-preserve=mode ${protoDeps} deps + yq -i 'del(.deps)' proto/buf.yaml + rm proto/buf.lock + { + echo 'version: v1' + echo 'directories:' + echo ' - proto' + for module in deps/*/*; do + echo " - $module" + done + } > buf.work.yaml + + HOME=$TMPDIR buf build proto -o image.binpb + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + cp image.binpb $out + runHook postInstall + ''; + }; + + generateProtobufCode = + { + pname, + version, + nativeBuildInputs ? [ ], + bufArgs ? "", + workDir ? ".", + outputPath, + }: + stdenv.mkDerivation { + pname = "${pname}-buf-generated"; + inherit version; + + src = zitadelRepo; + + nativeBuildInputs = nativeBuildInputs ++ [ buf ]; + + buildPhase = '' + runHook preBuild + cd ${workDir} + HOME=$TMPDIR buf generate ${protoImage}#format=binpb ${bufArgs} + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + cp -r ${outputPath} $out + runHook postInstall + ''; + }; + + # pnpm store and the protobuf-es codegen for the console + jsDeps = callPackage ./javascript.nix { inherit protoImage version zitadelRepo; }; + + # Upstream runs `buf generate` from the repository root (the `generate-stubs` + # target in apps/api/project.json); here it runs against protoImage. + protobufGenerated = generateProtobufCode { + pname = "zitadel"; + inherit version; + nativeBuildInputs = [ + grpc-gateway + protoc-gen-authoption + protoc-gen-connect-go + protoc-gen-go + protoc-gen-go-grpc + protoc-gen-validate + protoc-gen-zitadel + ]; + outputPath = ".artifacts"; + }; +in +buildGoModule (finalAttrs: { + pname = "zitadel"; + inherit version; + + src = zitadelRepo; + + patches = [ + # `zitadel setup` fails at step 64 with "type eventstore.command2[] does + # not exist" on databases that never ran step 64, e.g. every 2.71.x one. + # https://github.com/zitadel/zitadel/issues/13039 + (fetchpatch { + name = "setup-64-create-command2-type.patch"; + url = "https://github.com/zitadel/zitadel/commit/c4ac8a10324a6f4fcbaaf44b5aa4c97ceb2411df.patch"; + hash = "sha256-v0MzY4CSAjG13IeNppoyWhioNYmUCdDCYOn4j3Rbmug="; + }) + ]; + + nativeBuildInputs = [ + dart-sass + statik + ]; + + # The upstream //go:generate directive shells out to `pnpm sass`; we provide + # dart-sass directly instead of going through the JS toolchain. + postPatch = '' + substituteInPlace internal/api/ui/login/static/resources/generate.go \ + --replace-fail "pnpm sass" "sass" + ''; + + proxyVendor = true; + vendorHash = goModulesHash; + ldflags = [ + "-s" + "-w" + "-X 'github.com/zitadel/zitadel/cmd/build.version=${version}'" + ]; + + # The repository also contains documentation snippets and test helpers that + # are not part of the main module; only the root package is the server. + subPackages = [ "." ]; + + # Adapted from apps/api/project.json (targets: generate-stubs, generate-statik, + # generate-assets, build-console), with dependency fetching and protobuf + # codegen bits removed. + preBuild = '' + # ZITADEL warns on every invocation if the build date is unset, so derive a + # deterministic one from SOURCE_DATE_EPOCH. + ldflags+=" -X github.com/zitadel/zitadel/cmd/build.date=$(date -u -d "@$SOURCE_DATE_EPOCH" +%Y-%m-%dT%H:%M:%SZ)" + + mkdir -p pkg/grpc + cp -r ${protobufGenerated}/grpc/github.com/zitadel/zitadel/pkg/grpc/* pkg/grpc + mkdir -p openapi/v2/zitadel + cp -r ${protobufGenerated}/grpc/zitadel/ openapi/v2/zitadel + + go generate internal/api/ui/login/static/resources/generate.go + go generate internal/api/ui/login/statik/generate.go + go generate internal/notification/statik/generate.go + go generate internal/statik/generate.go + + mkdir -p apps/docs/content/apis/assets + go run internal/api/assets/generator/asset_generator.go \ + -directory=internal/api/assets/generator/ \ + -assets=apps/docs/content/apis/assets/assets.mdx + + find internal/api/ui/console/static -mindepth 1 ! -name gitkeep -delete + cp -r ${finalAttrs.passthru.console}/* internal/api/ui/console/static + ''; + + doCheck = false; + + installPhase = '' + runHook preInstall + install -Dm755 $GOPATH/bin/zitadel $out/bin/zitadel + runHook postInstall + ''; + + passthru = { + console = callPackage (import ./console.nix { + inherit + generateProtobufCode + jsDeps + version + zitadelRepo + ; + }) { }; + + # zitadel-login builds from the same source and needs the same generated + # packages/zitadel-proto, but neither the API server nor the console. + inherit (jsDeps) protoPackageGenerated; + }; + + meta = { + description = "Identity and access management platform"; + homepage = "https://zitadel.com/"; + downloadPage = "https://github.com/zitadel/zitadel/releases"; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + # v2.71.7 was Apache-2.0; v3.0.0 relicensed to AGPL-3.0-only + # (LICENSING.md, https://zitadel.com/blog/apache-to-agpl). + license = lib.licenses.agpl3Only; + sourceProvenance = [ lib.sourceTypes.fromSource ]; + maintainers = with lib.maintainers; [ + nrabulinski + Mop-u + ]; + mainProgram = "zitadel"; + }; +}) -- knotmirror 0.0.1