1{
2 buildNpmPackage,
3 lib,
4 fetchFromGitHub,
5 pkg-config,
6 vips,
7}:
8
9buildNpmPackage rec {
10 pname = "snapweb";
11 version = "0.9.0";
12
13 src = fetchFromGitHub {
14 owner = "badaix";
15 repo = "snapweb";
16 rev = "v${version}";
17 hash = "sha256-vil7HzP2KtdhFCxW12ah3EN3PxTE0ypctGPQbHT4M98=";
18 };
19
20 npmDepsHash = "sha256-/gsdiAbxI2Wr1dzT8jGxoNx1hts1dVcTRKTj+5gFy0Y=";
21
22 # For 'sharp' dependency, otherwise it will try to build it
23 nativeBuildInputs = [ pkg-config ];
24 buildInputs = [ vips ];
25
26 installPhase = ''
27 runHook preInstall
28
29 cp -r dist $out/
30
31 runHook postInstall
32 '';
33
34 meta = with lib; {
35 description = "Web client for Snapcast";
36 homepage = "https://github.com/badaix/snapweb";
37 maintainers = with maintainers; [ ettom ];
38 license = licenses.gpl3Plus;
39 };
40}