diff options
Diffstat (limited to 'pkgs/servers/authelia/web.nix')
-rw-r--r-- | pkgs/servers/authelia/web.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/servers/authelia/web.nix b/pkgs/servers/authelia/web.nix new file mode 100644 index 0000000000000..e28df798fd0a2 --- /dev/null +++ b/pkgs/servers/authelia/web.nix @@ -0,0 +1,30 @@ +{ buildNpmPackage, fetchFromGitHub }: + +let + inherit (import ./sources.nix { inherit fetchFromGitHub; }) pname version src npmDepsHash; +in +buildNpmPackage { + pname = "${pname}-web"; + inherit src version npmDepsHash; + + sourceRoot = "source/web"; + + patches = [ + ./change-web-out-dir.patch + ]; + + postPatch = '' + cp ${./package-lock.json} ./package-lock.json + ''; + + npmFlags = [ "--legacy-peer-deps" ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share + mv dist $out/share/authelia-web + + runHook postInstall + ''; +} |