depot/nix/pkgs/authentik/webui/default.nix

20 lines
427 B
Nix
Raw Normal View History

2022-05-12 22:55:10 +00:00
{ pkgs, src, version, ... }:
pkgs.buildNpmPackage {
pname = "authentik-webui";
inherit src version;
2022-05-12 22:55:10 +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
dontNpmInstall = true;
installPhase = ''
runHook preInstall
mkdir $out
cp -r robots.txt security.txt dist/ authentik/ $out
runHook postInstall
'';
}