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

20 lines
403 B
Nix

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