nixpkgs/pkgs/servers/photoprism/frontend.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
540 B
Nix
Raw Normal View History

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