lol

authentik,authentik.outposts.{ldap,radius,proxy}: 2025.4.1 -> 2024.6.3

+113 -28
+2 -2
pkgs/by-name/au/authentik/ldap.nix
··· 1 { 2 buildGoModule, 3 authentik, 4 }: 5 6 buildGoModule { 7 pname = "authentik-ldap-outpost"; 8 inherit (authentik) version src; 9 - 10 - vendorHash = "sha256-cEB22KFDONcJBq/FvLpYKN7Zd06mh8SACvCSuj5i4fI="; 11 12 env.CGO_ENABLED = 0; 13
··· 1 { 2 buildGoModule, 3 authentik, 4 + vendorHash, 5 }: 6 7 buildGoModule { 8 pname = "authentik-ldap-outpost"; 9 inherit (authentik) version src; 10 + inherit vendorHash; 11 12 env.CGO_ENABLED = 0; 13
+8 -4
pkgs/by-name/au/authentik/outposts.nix
··· 1 - { callPackage }: 2 { 3 - ldap = callPackage ./ldap.nix { }; 4 - proxy = callPackage ./proxy.nix { }; 5 - radius = callPackage ./radius.nix { }; 6 }
··· 1 { 2 + callPackage, 3 + authentik, 4 + vendorHash ? authentik.proxy.vendorHash, 5 + }: 6 + { 7 + ldap = callPackage ./ldap.nix { inherit vendorHash; }; 8 + proxy = callPackage ./proxy.nix { inherit vendorHash; }; 9 + radius = callPackage ./radius.nix { inherit vendorHash; }; 10 }
+99 -18
pkgs/by-name/au/authentik/package.nix
··· 4 callPackages, 5 cacert, 6 fetchFromGitHub, 7 - buildNpmPackage, 8 buildGoModule, 9 runCommand, 10 bash, ··· 16 }: 17 18 let 19 - version = "2025.4.1"; 20 21 src = fetchFromGitHub { 22 owner = "goauthentik"; 23 repo = "authentik"; 24 rev = "version/${version}"; 25 - hash = "sha256-idShMSYIrf3ViG9VFNGNu6TSjBz3Q+GJMMeCzcJwfG4="; 26 }; 27 28 meta = { ··· 30 changelog = "https://github.com/goauthentik/authentik/releases/tag/version%2F${version}"; 31 homepage = "https://goauthentik.io/"; 32 license = lib.licenses.mit; 33 - platforms = lib.platforms.linux; 34 - broken = stdenvNoCC.buildPlatform != stdenvNoCC.hostPlatform; 35 maintainers = with lib.maintainers; [ 36 jvanbruegge 37 risson ··· 45 46 sourceRoot = "${src.name}/website"; 47 48 - outputHash = "sha256-AnQpjCoCTzm28Wl/t3YHx0Kl0CuMHL2OgRjRB1Trrsw="; 49 outputHashMode = "recursive"; 50 51 nativeBuildInputs = [ ··· 55 56 buildPhase = '' 57 npm ci --cache ./cache 58 rm -r ./cache node_modules/.package-lock.json 59 ''; 60 ··· 73 74 postPatch = '' 75 substituteInPlace package.json --replace-fail 'cross-env ' "" 76 ''; 77 78 sourceRoot = "${src.name}/website"; ··· 82 83 cp -r ${website-deps} node_modules 84 chmod -R +w node_modules 85 pushd node_modules/.bin 86 patchShebangs $(readlink docusaurus) 87 popd 88 - cat node_modules/.bin/docusaurus 89 - npm run build-bundled 90 91 runHook postBuild 92 ''; ··· 120 ''; 121 }; 122 123 - webui = buildNpmPackage { 124 pname = "authentik-webui"; 125 inherit version meta; 126 127 src = runCommand "authentik-webui-source" { } '' 128 - mkdir -p $out/web/node_modules/@goauthentik/ 129 cp -r ${src}/web $out/ 130 ln -s ${src}/package.json $out/ 131 - ln -s ${src}/website $out/ 132 ln -s ${clientapi} $out/web/node_modules/@goauthentik/api 133 ''; 134 - npmDepsHash = "sha256-i95sH+KUgAQ76cv1+7AE/UA6jsReQMttDGWClNE2Ol4="; 135 136 postPatch = '' 137 cd web 138 ''; 139 140 CHROMEDRIVER_FILEPATH = lib.getExe chromedriver; ··· 205 pythonImportsCheck = [ "rest_framework" ]; 206 }; 207 208 authentik-django = prev.buildPythonPackage { 209 pname = "authentik-django"; 210 inherit version src meta; ··· 218 --replace-fail '/blueprints' "$out/blueprints" \ 219 --replace-fail './media' '/var/lib/authentik/media' 220 substituteInPlace pyproject.toml \ 221 - --replace-fail '"dumb-init",' "" \ 222 --replace-fail 'djangorestframework-guardian' 'djangorestframework-guardian2' 223 substituteInPlace authentik/stages/email/utils.py \ 224 --replace-fail 'web/' '${webui}/' ··· 229 prev.pythonRelaxDepsHook 230 ]; 231 232 - pythonRelaxDeps = [ 233 - "xmlsec" 234 - ]; 235 236 propagatedBuildInputs = 237 with final; ··· 339 340 env.CGO_ENABLED = 0; 341 342 - vendorHash = "sha256-cEB22KFDONcJBq/FvLpYKN7Zd06mh8SACvCSuj5i4fI="; 343 344 postInstall = '' 345 mv $out/bin/server $out/bin/authentik ··· 383 runHook postInstall 384 ''; 385 386 - passthru.outposts = callPackages ./outposts.nix { }; 387 388 nativeBuildInputs = [ makeWrapper ]; 389
··· 4 callPackages, 5 cacert, 6 fetchFromGitHub, 7 buildGoModule, 8 runCommand, 9 bash, ··· 15 }: 16 17 let 18 + version = "2025.6.4"; 19 20 src = fetchFromGitHub { 21 owner = "goauthentik"; 22 repo = "authentik"; 23 rev = "version/${version}"; 24 + hash = "sha256-bs/ThY3YixwBObahcS7BrOWj0gsaUXI664ldUQlJul8="; 25 }; 26 27 meta = { ··· 29 changelog = "https://github.com/goauthentik/authentik/releases/tag/version%2F${version}"; 30 homepage = "https://goauthentik.io/"; 31 license = lib.licenses.mit; 32 + platforms = [ "x86_64-linux" ]; 33 maintainers = with lib.maintainers; [ 34 jvanbruegge 35 risson ··· 43 44 sourceRoot = "${src.name}/website"; 45 46 + outputHash = "sha256-1qlJf4mVYM5znF3Ifi7CpGMfinUsb/YoXGeM6QLYMis="; 47 outputHashMode = "recursive"; 48 49 nativeBuildInputs = [ ··· 53 54 buildPhase = '' 55 npm ci --cache ./cache 56 + 57 rm -r ./cache node_modules/.package-lock.json 58 ''; 59 ··· 72 73 postPatch = '' 74 substituteInPlace package.json --replace-fail 'cross-env ' "" 75 + substituteInPlace ../packages/docusaurus-config/lib/common.js \ 76 + --replace-fail 'title: "authentik",' 'title: "authentik", future: { experimental_faster : { rspackBundler: false }},' 77 ''; 78 79 sourceRoot = "${src.name}/website"; ··· 83 84 cp -r ${website-deps} node_modules 85 chmod -R +w node_modules 86 + 87 pushd node_modules/.bin 88 patchShebangs $(readlink docusaurus) 89 popd 90 + npm run build:schema 91 + npm run build:api 92 + npm run build:docusaurus 93 94 runHook postBuild 95 ''; ··· 123 ''; 124 }; 125 126 + # prefetch-npm-deps does not save all dependencies even though the lockfile is fine 127 + webui-deps = stdenvNoCC.mkDerivation { 128 + pname = "authentik-webui-deps"; 129 + inherit src version meta; 130 + 131 + sourceRoot = "${src.name}/web"; 132 + 133 + outputHash = "sha256-m0vYUevOz6pof8XqiZHXzgPhkQLUUFOdblmfOjHJUJc="; 134 + outputHashMode = "recursive"; 135 + 136 + nativeBuildInputs = [ 137 + nodejs 138 + cacert 139 + ]; 140 + 141 + postPatch = '' 142 + substituteInPlace packages/core/version/node.js \ 143 + --replace-fail 'import PackageJSON from "../../../../package.json" with { type: "json" };' "" \ 144 + --replace-fail '(PackageJSON.version);' '"${version}";' 145 + ''; 146 + 147 + buildPhase = '' 148 + npm ci --cache ./cache 149 + 150 + rm -r node_modules/chromedriver node_modules/.bin/chromedriver 151 + 152 + rm -r ./cache node_modules/.package-lock.json 153 + rm node_modules/@goauthentik/{core,web-sfe,esbuild-plugin-live-reload} 154 + cp -r packages/core node_modules/@goauthentik/ 155 + cp -r packages/sfe node_modules/@goauthentik/web-sfe 156 + ''; 157 + 158 + installPhase = '' 159 + mv node_modules $out 160 + ''; 161 + 162 + dontPatchShebangs = true; 163 + }; 164 + 165 + webui = stdenvNoCC.mkDerivation { 166 pname = "authentik-webui"; 167 inherit version meta; 168 169 src = runCommand "authentik-webui-source" { } '' 170 + mkdir $out 171 cp -r ${src}/web $out/ 172 ln -s ${src}/package.json $out/ 173 + chmod -R +w $out/web 174 + ln -s ${src}/website $out/web/ 175 + cp -r ${webui-deps} $out/web/node_modules 176 + chmod -R +w $out/web/node_modules 177 ln -s ${clientapi} $out/web/node_modules/@goauthentik/api 178 ''; 179 + 180 + nativeBuildInputs = [ 181 + nodejs 182 + ]; 183 184 postPatch = '' 185 cd web 186 + 187 + substituteInPlace packages/core/version/node.js \ 188 + --replace-fail 'import PackageJSON from "../../../../package.json" with { type: "json" };' "" \ 189 + --replace-fail '(PackageJSON.version);' '"${version}";' 190 + ''; 191 + 192 + buildPhase = '' 193 + runHook preBuild 194 + 195 + pushd node_modules/.bin 196 + patchShebangs $(readlink rollup) 197 + patchShebangs $(readlink wireit) 198 + patchShebangs $(readlink lit-localize) 199 + popd 200 + 201 + npm run build 202 + 203 + runHook postBuild 204 ''; 205 206 CHROMEDRIVER_FILEPATH = lib.getExe chromedriver; ··· 271 pythonImportsCheck = [ "rest_framework" ]; 272 }; 273 274 + tenant-schemas-celery = prev.tenant-schemas-celery.overrideAttrs (_: rec { 275 + version = "3.0.0"; 276 + 277 + src = fetchFromGitHub { 278 + owner = "maciej-gol"; 279 + repo = "tenant-schemas-celery"; 280 + tag = version; 281 + hash = "sha256-rGLrP8rE9SACMDVpNeBU85U/Sb2lNhsgEgHJhAsdKNM="; 282 + }; 283 + }); 284 + 285 authentik-django = prev.buildPythonPackage { 286 pname = "authentik-django"; 287 inherit version src meta; ··· 295 --replace-fail '/blueprints' "$out/blueprints" \ 296 --replace-fail './media' '/var/lib/authentik/media' 297 substituteInPlace pyproject.toml \ 298 --replace-fail 'djangorestframework-guardian' 'djangorestframework-guardian2' 299 substituteInPlace authentik/stages/email/utils.py \ 300 --replace-fail 'web/' '${webui}/' ··· 305 prev.pythonRelaxDepsHook 306 ]; 307 308 + pythonRemoveDeps = [ "dumb-init" ]; 309 + 310 + pythonRelaxDeps = true; 311 312 propagatedBuildInputs = 313 with final; ··· 415 416 env.CGO_ENABLED = 0; 417 418 + vendorHash = "sha256-7oX7e7Ni5I6zblEQIeXjYOt4+QNSjH4Rpn7B5Cr5LMc="; 419 420 postInstall = '' 421 mv $out/bin/server $out/bin/authentik ··· 459 runHook postInstall 460 ''; 461 462 + passthru = { 463 + inherit proxy; 464 + outposts = callPackages ./outposts.nix { 465 + inherit (proxy) vendorHash; 466 + }; 467 + }; 468 469 nativeBuildInputs = [ makeWrapper ]; 470
+2 -2
pkgs/by-name/au/authentik/proxy.nix
··· 1 { 2 buildGoModule, 3 authentik, 4 }: 5 6 buildGoModule { 7 pname = "authentik-proxy-outpost"; 8 inherit (authentik) version src; 9 - 10 - vendorHash = "sha256-cEB22KFDONcJBq/FvLpYKN7Zd06mh8SACvCSuj5i4fI="; 11 12 env.CGO_ENABLED = 0; 13
··· 1 { 2 buildGoModule, 3 authentik, 4 + vendorHash, 5 }: 6 7 buildGoModule { 8 pname = "authentik-proxy-outpost"; 9 inherit (authentik) version src; 10 + inherit vendorHash; 11 12 env.CGO_ENABLED = 0; 13
+2 -2
pkgs/by-name/au/authentik/radius.nix
··· 1 { 2 buildGoModule, 3 authentik, 4 }: 5 6 buildGoModule { 7 pname = "authentik-radius-outpost"; 8 inherit (authentik) version src; 9 - 10 - vendorHash = "sha256-cEB22KFDONcJBq/FvLpYKN7Zd06mh8SACvCSuj5i4fI="; 11 12 env.CGO_ENABLED = 0; 13
··· 1 { 2 buildGoModule, 3 authentik, 4 + vendorHash, 5 }: 6 7 buildGoModule { 8 pname = "authentik-radius-outpost"; 9 inherit (authentik) version src; 10 + inherit vendorHash; 11 12 env.CGO_ENABLED = 0; 13