2022-05-12 22:55:10 +00:00
|
|
|
{ pkgs, src, version, ... }:
|
|
|
|
|
2022-12-03 23:45:07 +00:00
|
|
|
pkgs.buildNpmPackage {
|
|
|
|
pname = "authentik-webui";
|
|
|
|
inherit src version;
|
2022-05-12 22:55:10 +00:00
|
|
|
|
2022-12-03 23:45:07 +00:00
|
|
|
sourceRoot = "source/web";
|
2022-05-12 22:55:10 +00:00
|
|
|
|
2023-09-30 01:13:00 +00:00
|
|
|
nativeBuildInputs = [ pkgs.python3 ];
|
2024-03-01 23:49:17 +00:00
|
|
|
npmDepsHash = "sha256:1v69zmbksras3b3fggiqkfaj727gjb3v9x0a9ziyxamyb7vyrp2y";
|
2022-05-12 22:55:10 +00:00
|
|
|
|
2022-12-03 23:45:07 +00:00
|
|
|
dontNpmInstall = true;
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
|
|
cp -r robots.txt security.txt dist/ authentik/ $out
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
}
|