lol

zigbee2mqtt: make systemd support optional

+5 -2
+5 -2
pkgs/servers/zigbee2mqtt/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , buildNpmPackage 3 4 , fetchFromGitHub 4 5 , systemdMinimal 5 6 , nixosTests 6 7 , nix-update-script 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 - buildInputs = [ 24 + buildInputs = lib.optionals withSystemd [ 23 25 systemdMinimal 24 26 ]; 25 27 28 + npmFlags = lib.optionals (!withSystemd) [ "--omit=optional" ]; 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 - platforms = platforms.linux; 42 45 mainProgram = "zigbee2mqtt"; 43 46 }; 44 47 }