components: drop celery, package manage.py instead
This commit is contained in:
parent
8edfcf318a
commit
d85dacb6c2
5 changed files with 21 additions and 18 deletions
|
|
@ -1,13 +0,0 @@
|
|||
{ authentikComponents
|
||||
, makeWrapper
|
||||
, runCommandLocal
|
||||
}:
|
||||
|
||||
runCommandLocal "authentik-celery" {
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
} ''
|
||||
mkdir -vp $out/bin
|
||||
ln -sv ${authentikComponents.pythonEnv}/bin/celery $out/bin/celery
|
||||
wrapProgram $out/bin/celery \
|
||||
--prefix PYTHONPATH : ${authentikComponents.staticWorkdirDeps}
|
||||
''
|
||||
|
|
@ -29,7 +29,7 @@ pkgs.lib.makeScope pkgs.newScope (final:
|
|||
inherit authentik-src;
|
||||
};
|
||||
# worker
|
||||
celery = final.callPackage ./celery.nix {
|
||||
manage = final.callPackage ./manage.nix {
|
||||
};
|
||||
in
|
||||
{
|
||||
|
|
@ -41,7 +41,7 @@ pkgs.lib.makeScope pkgs.newScope (final:
|
|||
gopkgs
|
||||
staticWorkdirDeps
|
||||
migrate
|
||||
celery;
|
||||
manage;
|
||||
};
|
||||
inherit authentik-src authentik-version;
|
||||
}
|
||||
|
|
|
|||
16
components/manage.nix
Normal file
16
components/manage.nix
Normal 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}
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue