20 lines
403 B
Nix
20 lines
403 B
Nix
{ pkgs, src, version, ... }:
|
|
|
|
pkgs.buildNpmPackage rec {
|
|
pname = "authentik-docs";
|
|
inherit src version;
|
|
|
|
sourceRoot = "source/website";
|
|
|
|
npmDepsHash = "sha256:0hi7asn5b8ysm2vryji600kp9p3jk1s3kfskq1pmdbjx0kbn3q73";
|
|
npmBuildFlags = "-- --config docusaurus.docs-only.js";
|
|
|
|
dontNpmInstall = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
cp -r build $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
}
|