nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 3f928d8eff9583d0390b9ba0a355b58e4d3d8f69
parent bcb29abea22f62c6a7be0bea200ef0e1b06e9792
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 14 Jul 2024 18:37:26 +0400

Add zwave-js-server

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/zwave-js-server/default.nix | 29+++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -402,6 +402,7 @@ lib.makeScope newScope ( xfractint = callPackage ./misc/xfractint { }; xtr = callPackage ./misc/xtr { }; youtimetrack = callPackage ./misc/youtimetrack { }; + zwave-js-server = callPackage ./misc/zwave-js-server { }; zwave-js-ui = callPackage ./misc/zwave-js-ui { }; ### MQTT diff --git a/pkgs/misc/zwave-js-server/default.nix b/pkgs/misc/zwave-js-server/default.nix @@ -0,0 +1,29 @@ +{ + lib, + buildNpmPackage, + fetchFromGitHub, + nodePackages, +}: + +buildNpmPackage rec { + pname = "zwave-js-server"; + version = "1.36.0"; + + src = fetchFromGitHub { + owner = "zwave-js"; + repo = "zwave-js-server"; + rev = version; + hash = "sha256-+GyQy7CVd3t98kUDTpPzmPs5WNU8Ct/e+kHPh08gb0Q="; + }; + + npmDepsHash = "sha256-u9Y9yOLZZ+DnFYAAhF0SUa+qW+Mj+3duzAKKS6xCkp0="; + + nativeBuildInputs = [ nodePackages.ts-node ]; + + meta = { + description = "Full access to zwave-js driver through Websockets"; + homepage = "https://zwave-js.github.io/zwave-js-server"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.sikmir ]; + }; +}