From 30d0cf4bdeb793d085cc578d0505e3e211f162a4 Mon Sep 17 00:00:00 2001 From: ettom <36895504+ettom@users.noreply.github.com> Date: Wed, 9 Oct 2024 18:31:23 +0300 Subject: [PATCH] snapweb: init at 0.8.0 --- pkgs/by-name/sn/snapweb/package.nix | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/sn/snapweb/package.nix diff --git a/pkgs/by-name/sn/snapweb/package.nix b/pkgs/by-name/sn/snapweb/package.nix new file mode 100644 index 000000000000..e3b1673a9180 --- /dev/null +++ b/pkgs/by-name/sn/snapweb/package.nix @@ -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; + }; +}