summaryrefslogtreecommitdiffstats
path: root/pkgs/servers/web-apps/szurubooru/client.nix
blob: d427c64774c78c5aeb64a592527daf5f60f6b4f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  src,
  version,
  lib,
  buildNpmPackage,
}:

buildNpmPackage {
  pname = "szurubooru-client";
  inherit version;

  src = "${src}/client";

  npmDepsHash = "sha256-HtcitZl2idgVleB6c0KCTSNLxh7hP8/G/RGdMaQG3iI=";
  makeCacheWritable = true;

  npmBuildFlags = [
    "--gzip"
  ];

  installPhase = ''
    runHook preInstall

    mkdir $out
    mv ./public/* $out

    runHook postInstall
  '';

  meta = {
    description = "Client of szurubooru, an image board engine for small and medium communities";
    homepage = "https://github.com/rr-/szurubooru";
    license = lib.licenses.gpl3;
    maintainers = with lib.maintainers; [ ratcornu ];
  };
}