-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/Koenkk/zigbee2mqtt/releases/tag/2.0.0 https://github.com/Koenkk/zigbee2mqtt/releases/tag/2.1.0 https://github.com/Koenkk/zigbee2mqtt/releases/tag/2.1.1
- Loading branch information
Showing
6 changed files
with
108 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitHub, | ||
nodejs, | ||
npmHooks, | ||
pnpm_9, | ||
systemdMinimal, | ||
nixosTests, | ||
nix-update-script, | ||
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemdMinimal, | ||
}: | ||
|
||
let | ||
pnpm = pnpm_9; | ||
in | ||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "zigbee2mqtt"; | ||
version = "2.1.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Koenkk"; | ||
repo = "zigbee2mqtt"; | ||
tag = finalAttrs.version; | ||
hash = "sha256-YVsQ4Zo0nlIb9m4wiK7xcqB7eE/h2ZvTTqEYLDagoHM="; | ||
}; | ||
|
||
pnpmDeps = pnpm.fetchDeps { | ||
inherit (finalAttrs) pname version src; | ||
hash = "sha256-Wr7FngKfedUrtOLpaTxvAdJZfCXo1/+oLMIJMOCgafk="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
nodejs | ||
npmHooks.npmInstallHook | ||
pnpm.configHook | ||
]; | ||
|
||
buildInputs = lib.optionals withSystemd [ | ||
systemdMinimal | ||
]; | ||
|
||
buildPhase = '' | ||
runHook preBuild | ||
pnpm run build | ||
runHook postBuild | ||
''; | ||
|
||
dontNpmPrune = true; | ||
|
||
passthru.tests.zigbee2mqtt = nixosTests.zigbee2mqtt_2; | ||
passthru.updateScript = nix-update-script { }; | ||
|
||
meta = with lib; { | ||
changelog = "https://github.com/Koenkk/zigbee2mqtt/releases/tag/${finalAttrs.version}"; | ||
description = "Zigbee to MQTT bridge using zigbee-shepherd"; | ||
homepage = "https://github.com/Koenkk/zigbee2mqtt"; | ||
license = licenses.gpl3; | ||
longDescription = '' | ||
Allows you to use your Zigbee devices without the vendor's bridge or gateway. | ||
It bridges events and allows you to control your Zigbee devices via MQTT. | ||
In this way you can integrate your Zigbee devices with whatever smart home infrastructure you are using. | ||
''; | ||
maintainers = with maintainers; [ | ||
sweber | ||
hexa | ||
]; | ||
mainProgram = "zigbee2mqtt"; | ||
}; | ||
}) |