Fix authentik: symlink authentik/ for BASE_DIR resolution
All checks were successful
Build Container (Nix) / detect (push) Successful in 1s
Build Container / detect (push) Successful in 2s
Build Container / build (authentik) (push) Successful in 2s
Build Container (Nix) / build (authentik) (push) Successful in 3m4s

Django's BASE_DIR is $out but source lives in site-packages. Code
like BASE_DIR / "authentik" / "sources" / "scim" / "schemas" / ...
needs a top-level symlink to find data files alongside Python source.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-03-01 15:55:26 -08:00
commit e49d966229

View file

@ -142,6 +142,7 @@ pkgs.stdenv.mkDerivation {
# --- Top-level structure --- # --- Top-level structure ---
ln -s ${sp}/lifecycle $out/lifecycle ln -s ${sp}/lifecycle $out/lifecycle
ln -s ${sp}/authentik $out/authentik
cp -r blueprints $out/blueprints cp -r blueprints $out/blueprints
cp manage.py $out/manage.py cp manage.py $out/manage.py