nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildNpmPackage,
3 lib,
4 fetchFromGitHub,
5 pkg-config,
6 vips,
7}:
8
9buildNpmPackage rec {
10 pname = "snapweb";
11 version = "0.9.2";
12
13 src = fetchFromGitHub {
14 owner = "badaix";
15 repo = "snapweb";
16 rev = "v${version}";
17 hash = "sha256-7W7rvJPVcRtXcQt+wWAvrl0DOIh7zEfXZdFDcH23/ls=";
18 };
19
20 npmDepsHash = "sha256-STZ/+vmiUAOZ8+yeaFg+428pZ/iZZXXUeGx6gLmnDQ8=";
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 = {
35 description = "Web client for Snapcast";
36 homepage = "https://github.com/badaix/snapweb";
37 maintainers = with lib.maintainers; [ ettom ];
38 license = lib.licenses.gpl3Plus;
39 };
40}