2023-01-16 19:58:26 +01:00
|
|
|
{ lib, buildNpmPackage, src, version }:
|
2022-11-02 19:41:07 +01:00
|
|
|
|
2023-01-16 19:58:26 +01:00
|
|
|
buildNpmPackage {
|
2022-11-02 19:41:07 +01:00
|
|
|
inherit src version;
|
|
|
|
pname = "photoprism-frontend";
|
|
|
|
|
2023-01-16 19:58:26 +01:00
|
|
|
postPatch = ''
|
|
|
|
cd frontend
|
2022-11-02 19:41:07 +01:00
|
|
|
'';
|
|
|
|
|
2024-01-03 00:41:48 +01:00
|
|
|
npmDepsHash = "sha256-4bAWSSy7kvG1ChzEb2iuxgWxnkjtJlr7Lm7USbgsmAw=";
|
2023-01-16 19:58:26 +01:00
|
|
|
|
2022-11-02 19:41:07 +01:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir $out
|
2023-01-16 19:58:26 +01:00
|
|
|
cp -r ../assets $out/
|
2022-11-02 19:41:07 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://photoprism.app";
|
|
|
|
description = "Photoprism's frontend";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ benesim ];
|
|
|
|
};
|
|
|
|
}
|