2023-03-24 12:44:27 +01:00
|
|
|
{ buildNpmPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (import ./sources.nix { inherit fetchFromGitHub; }) pname version src npmDepsHash;
|
|
|
|
in
|
|
|
|
buildNpmPackage {
|
|
|
|
pname = "${pname}-web";
|
|
|
|
inherit src version npmDepsHash;
|
|
|
|
|
2023-07-25 15:27:31 +02:00
|
|
|
sourceRoot = "${src.name}/web";
|
2023-03-24 12:44:27 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|