nixpkgs/pkgs/servers/photoprism/frontend.nix
2023-01-18 13:41:30 +01:00

29 lines
539 B
Nix

{ lib, buildNpmPackage, src, version }:
buildNpmPackage {
inherit src version;
pname = "photoprism-frontend";
postPatch = ''
cd frontend
'';
npmDepsHash = "sha256-NAtZ85WjiQn9w0B9Y78XL+tSsshHlaXS8+WtojFJmGg";
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 ];
};
}