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:12d637kdmcmrbm99idyppyii0pd1yf6qk6573aili87d1aa8m875";
|
|
|
|
dontNpmInstall = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir $out
|
|
cp -r robots.txt security.txt dist/ authentik/ $out
|
|
runHook postInstall
|
|
'';
|
|
}
|