depot/nix/pkgs/authentik/docs/default.nix

21 lines
403 B
Nix
Raw Normal View History

2022-05-12 22:55:10 +00:00
{ pkgs, src, version, ... }:
pkgs.buildNpmPackage rec {
pname = "authentik-docs";
inherit src version;
2022-05-12 22:55:10 +00:00
sourceRoot = "source/website";
2022-05-12 22:55:10 +00:00
npmDepsHash = "sha256:00ih8nfiiwggbhbx3kcr6iids16zql1ad2zx6kd5i84j0ncsxwrk";
npmBuildFlags = "-- --config docusaurus.docs-only.js";
2022-05-12 22:55:10 +00:00
dontNpmInstall = true;
installPhase = ''
runHook preInstall
2022-05-12 22:55:10 +00:00
cp -r build $out
runHook postInstall
'';
}