mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
37 lines
887 B
Nix
37 lines
887 B
Nix
{ lib
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "zwave-js-server";
|
|
version = "1.36.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zwave-js";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-+GyQy7CVd3t98kUDTpPzmPs5WNU8Ct/e+kHPh08gb0Q=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-u9Y9yOLZZ+DnFYAAhF0SUa+qW+Mj+3duzAKKS6xCkp0=";
|
|
|
|
# For some reason the zwave-js dependency is in devDependencies
|
|
npmFlags = [ "--include=dev" ];
|
|
|
|
passthru = {
|
|
tests = {
|
|
inherit (nixosTests) zwave-js;
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://github.com/zwave-js/zwave-js-server/releases/tag/${version}";
|
|
description = "Small server wrapper around Z-Wave JS to access it via a WebSocket";
|
|
license = lib.licenses.asl20;
|
|
homepage = "https://github.com/zwave-js/zwave-js-server";
|
|
maintainers = with lib.maintainers; [ graham33 ];
|
|
};
|
|
}
|