tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
zigbee2mqtt: make systemd support optional
Nikolay Korotkiy
2 years ago
25995c9f
3eaeaeb6
+5
-2
1 changed file
expand all
collapse all
unified
split
pkgs
servers
zigbee2mqtt
default.nix
+5
-2
pkgs/servers/zigbee2mqtt/default.nix
reviewed
···
1
1
{ lib
2
2
+
, stdenv
2
3
, buildNpmPackage
3
4
, fetchFromGitHub
4
5
, systemdMinimal
5
6
, nixosTests
6
7
, nix-update-script
8
8
+
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemdMinimal
7
9
}:
8
10
9
11
buildNpmPackage rec {
···
19
21
20
22
npmDepsHash = "sha256-AjCeRU/Ew9UquqGPuJeGRC48kCi9uRZaI5Bam365Wwk=";
21
23
22
22
-
buildInputs = [
24
24
+
buildInputs = lib.optionals withSystemd [
23
25
systemdMinimal
24
26
];
25
27
28
28
+
npmFlags = lib.optionals (!withSystemd) [ "--omit=optional" ];
29
29
+
26
30
passthru.tests.zigbee2mqtt = nixosTests.zigbee2mqtt;
27
31
passthru.updateScript = nix-update-script { };
28
32
···
38
42
In this way you can integrate your Zigbee devices with whatever smart home infrastructure you are using.
39
43
'';
40
44
maintainers = with maintainers; [ sweber hexa ];
41
41
-
platforms = platforms.linux;
42
45
mainProgram = "zigbee2mqtt";
43
46
};
44
47
}