components: drop celery, package manage.py instead

This commit is contained in:
WilliButz 2024-02-21 21:59:49 +01:00
parent 8edfcf318a
commit d85dacb6c2
No known key found for this signature in database
GPG key ID: AB05DF703EB9DC70
5 changed files with 21 additions and 18 deletions

16
components/manage.nix Normal file
View file

@ -0,0 +1,16 @@
{ authentik-src
, authentikComponents
, makeWrapper
, runCommandLocal
}:
runCommandLocal "authentik-manage" {
nativeBuildInputs = [ makeWrapper ];
} ''
mkdir -vp $out/bin
cp -v ${authentik-src}/manage.py $out/bin/manage.py
wrapProgram $out/bin/manage.py \
--prefix PATH : ${authentikComponents.pythonEnv}/bin \
--prefix PYTHONPATH : ${authentikComponents.staticWorkdirDeps}
''