mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect continuation of: #548162
41 lines
808 B
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;
|
|
};
|
|
}
|