mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
31 lines
551 B
Nix
31 lines
551 B
Nix
|
{ 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
|
||
|
'';
|
||
|
}
|