22 stdenv.mkDerivation rec {
26 src = fetchFromGitHub {
30 hash = "sha256-D8U1kK3m1zT83YvZ42hGSU9PzBfS1VGr2mxUYbM2vNQ=";
31 fetchSubmodules = true;
56 "-DUSE_BUILTIN_MQTT=false"
57 "-DUSE_BUILTIN_LUA=false"
58 "-DUSE_BUILTIN_SQLITE=false"
59 "-DUSE_BUILTIN_JSONCPP=false"
60 "-DUSE_BUILTIN_ZLIB=false"
61 "-DUSE_OPENSSL_STATIC=false"
62 "-DUSE_STATIC_BOOST=false"
63 "-DUSE_BUILTIN_MINIZIP=true"
67 mkdir -p $out/share/domoticz
68 cp -r $src/www $out/share/domoticz/
69 cp -r $src/Config $out/share/domoticz
70 cp -r $src/scripts $out/share/domoticz
71 cp -r $src/plugins $out/share/domoticz
75 wrapProgram $out/bin/domoticz --set LD_LIBRARY_PATH ${python3}/lib;
79 description = "Home automation system";
81 Domoticz is a home automation system that lets you monitor and configure
82 various devices like: lights, switches, various sensors/meters like
83 temperature, rain, wind, UV, electra, gas, water and much more
85 maintainers = with maintainers; [ edcragg ];
86 homepage = "https://www.domoticz.com/";
87 changelog = "https://github.com/domoticz/domoticz/blob/${version}/History.txt";
88 license = licenses.gpl3Plus;
89 platforms = platforms.all;
90 broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/staging-next/domoticz.x86_64-darwin
91 mainProgram = "domoticz";