Before this change it was very inconvenient to override specific dependencies, e.g. patching something in pythonEnv and having its dependents use that patched version. This is just a step towards better overridability for the individual authentik components, because patched versions of components still need to be manually passed to their dependents. An overlay-like approach would be even better.
13 lines
331 B
Nix
13 lines
331 B
Nix
{ 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}
|
|
''
|