From 45affea3bee1b63e7f7cbc7de9cda65106cc0199 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 13 Oct 2024 15:29:42 +0100 Subject: [PATCH] zigbee2mqtt: init at dev --- nix/pkgs/default.nix | 2 ++ nix/pkgs/zigbee2mqtt.nix | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 nix/pkgs/zigbee2mqtt.nix diff --git a/nix/pkgs/default.nix b/nix/pkgs/default.nix index d2ba9a97a8..2f9d94fbb1 100644 --- a/nix/pkgs/default.nix +++ b/nix/pkgs/default.nix @@ -87,4 +87,6 @@ world-of-goo2 = pkgs.callPackage ./world-of-goo2.nix { }; srsran5g = pkgs.callPackage ./srsran5g { }; open5gs = pkgs.callPackage ./open5gs { }; + + zigbee2mqtt = pkgs.callPackage ./zigbee2mqtt.nix { }; } // (import ./heptapod-runner args) diff --git a/nix/pkgs/zigbee2mqtt.nix b/nix/pkgs/zigbee2mqtt.nix new file mode 100644 index 0000000000..8d40482911 --- /dev/null +++ b/nix/pkgs/zigbee2mqtt.nix @@ -0,0 +1,21 @@ +{ zigbee2mqtt, fetchNpmDeps, fetchFromGitHub, lib, ... }: + +assert zigbee2mqtt.version == "1.40.2"; + +zigbee2mqtt.overrideAttrs (old: rec { + version = "0-unstable-2024-10-12"; + + src = fetchFromGitHub { + owner = "Koenkk"; + repo = "zigbee2mqtt"; + rev = "db00759a030957ad6f80b8e1c230f959efb563ed"; + hash = "sha256-nIg06QbDUfo4yBo9gaxDGaah/TcnwM2rzMKA2Up8xmI="; + }; + + npmDepsHash = "sha256-bQgk9WVhBo+5VXgK+ZIYMVPxcVIKq4IVw3xQfaTqbZY="; + npmDeps = fetchNpmDeps { + inherit src; + name = "zigbee2mqtt-npm-deps"; + hash = npmDepsHash; + }; +})