2023-01-20 10:41:00 +00:00
|
|
|
{ lib, buildNpmPackage, src, version }:
|
2022-11-04 12:27:35 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
buildNpmPackage {
|
2022-11-04 12:27:35 +00:00
|
|
|
inherit src version;
|
|
|
|
pname = "photoprism-frontend";
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
postPatch = ''
|
|
|
|
cd frontend
|
2022-11-04 12:27:35 +00:00
|
|
|
'';
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
npmDepsHash = "sha256-tFO6gdERlljGJfMHvv6gMahZ6FgrXQOC/RQOsg1WAVk=";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir $out
|
2023-01-20 10:41:00 +00:00
|
|
|
cp -r ../assets $out/
|
2022-11-04 12:27:35 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://photoprism.app";
|
|
|
|
description = "Photoprism's frontend";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ benesim ];
|
|
|
|
};
|
|
|
|
}
|