2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-04-16 12:58:06 +00:00

snapweb: init at 0.8.0 ()

This commit is contained in:
Pol Dellaiera 2024-10-14 07:14:23 +02:00 committed by GitHub
commit 56cbea0d2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 42 additions and 1 deletions
nixos/modules/services/audio
pkgs/by-name/sn/snapweb

View File

@ -186,7 +186,8 @@ in {
http.docRoot = lib.mkOption {
type = with lib.types; nullOr path;
default = null;
default = pkgs.snapweb;
defaultText = lib.literalExpression "pkgs.snapweb";
description = ''
Path to serve from the HTTP servers root.
'';

View File

@ -0,0 +1,40 @@
{
buildNpmPackage,
lib,
fetchFromGitHub,
pkg-config,
vips,
}:
buildNpmPackage rec {
pname = "snapweb";
version = "0.8.0";
src = fetchFromGitHub {
owner = "badaix";
repo = "snapweb";
rev = "v${version}";
hash = "sha256-rrJmuTFk2dC+GqYmBZ+hu5hx1iknAgSWjr22S7bfmEE=";
};
npmDepsHash = "sha256-n1MmU9zHyuEqtQSfYpQ+0hDM0z6ongcFsGyikPMyNSU=";
# 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 = with lib; {
description = "Web client for Snapcast";
homepage = "https://github.com/badaix/snapweb";
maintainers = with maintainers; [ ettom ];
license = licenses.gpl3Plus;
};
}