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