Files
nixpkgs/pkgs/by-name/sn/snapweb/package.nix

41 lines
808 B
Nix

{
buildNpmPackage,
lib,
fetchFromGitHub,
pkg-config,
vips,
}:
buildNpmPackage rec {
pname = "snapweb";
version = "0.9.2";
src = fetchFromGitHub {
owner = "snapcast";
repo = "snapweb";
rev = "v${version}";
hash = "sha256-7W7rvJPVcRtXcQt+wWAvrl0DOIh7zEfXZdFDcH23/ls=";
};
npmDepsHash = "sha256-STZ/+vmiUAOZ8+yeaFg+428pZ/iZZXXUeGx6gLmnDQ8=";
# For 'sharp' dependency, otherwise it will try to build it
nativeBuildInputs = [ pkg-config ];
buildInputs = [ vips ];
installPhase = ''
runHook preInstall
cp -r dist $out/
runHook postInstall
'';
meta = {
description = "Web client for Snapcast";
homepage = "https://github.com/snapcast/snapweb";
maintainers = with lib.maintainers; [ ettom ];
license = lib.licenses.gpl3Plus;
};
}