paperless-ngx: add missing runHooks

This commit is contained in:
Sandro Jäckel 2024-05-03 17:40:55 +02:00
parent eba1ebd609
commit d5537cdf0b
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -190,6 +190,8 @@ python.pkgs.buildPythonApplication rec {
installPhase = let installPhase = let
pythonPath = python.pkgs.makePythonPath propagatedBuildInputs; pythonPath = python.pkgs.makePythonPath propagatedBuildInputs;
in '' in ''
runHook preInstall
mkdir -p $out/lib/paperless-ngx mkdir -p $out/lib/paperless-ngx
cp -r {src,static,LICENSE,gunicorn.conf.py} $out/lib/paperless-ngx cp -r {src,static,LICENSE,gunicorn.conf.py} $out/lib/paperless-ngx
ln -s ${frontend}/lib/paperless-ui/frontend $out/lib/paperless-ngx/static/ ln -s ${frontend}/lib/paperless-ui/frontend $out/lib/paperless-ngx/static/
@ -200,6 +202,8 @@ python.pkgs.buildPythonApplication rec {
makeWrapper ${python.pkgs.celery}/bin/celery $out/bin/celery \ makeWrapper ${python.pkgs.celery}/bin/celery $out/bin/celery \
--prefix PYTHONPATH : "${pythonPath}:$out/lib/paperless-ngx/src" \ --prefix PYTHONPATH : "${pythonPath}:$out/lib/paperless-ngx/src" \
--prefix PATH : "${path}" --prefix PATH : "${path}"
runHook postInstall
''; '';
postFixup = '' postFixup = ''