19 lines
427 B
Nix
19 lines
427 B
Nix
{ pkgs, src, version, ... }:
|
|
|
|
pkgs.buildNpmPackage {
|
|
pname = "authentik-webui";
|
|
inherit src version;
|
|
|
|
sourceRoot = "source/web";
|
|
|
|
nativeBuildInputs = [ pkgs.python3 ];
|
|
npmDepsHash = "sha256:17ad4wd7gy7pddnbxrhwjh5d2gfp2vslflpzrp3m5v80qnpas8lh";
|
|
|
|
dontNpmInstall = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir $out
|
|
cp -r robots.txt security.txt dist/ authentik/ $out
|
|
runHook postInstall
|
|
'';
|
|
}
|