28 lines
540 B
Nix
28 lines
540 B
Nix
{ lib, buildNpmPackage, src, version }:
|
|
|
|
buildNpmPackage {
|
|
inherit src version;
|
|
pname = "photoprism-frontend";
|
|
|
|
postPatch = ''
|
|
cd frontend
|
|
'';
|
|
|
|
npmDepsHash = "sha256-tFO6gdERlljGJfMHvv6gMahZ6FgrXQOC/RQOsg1WAVk=";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
cp -r ../assets $out/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://photoprism.app";
|
|
description = "Photoprism's frontend";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ benesim ];
|
|
};
|
|
}
|