uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
90
pkgs/servers/domoticz/default.nix
Normal file
90
pkgs/servers/domoticz/default.nix
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
{ lib, stdenv,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
cmake,
|
||||
python3,
|
||||
openssl,
|
||||
pkg-config,
|
||||
mosquitto,
|
||||
lua5_3,
|
||||
sqlite,
|
||||
jsoncpp,
|
||||
zlib,
|
||||
boost,
|
||||
curl,
|
||||
git,
|
||||
libusb-compat-0_1,
|
||||
cereal
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "domoticz";
|
||||
version = "2022.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "domoticz";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-wPSmpk3YeA+dNjx2mBdRkP2Mx/1cfrQOMLV5H5Ti7qU=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
python3
|
||||
mosquitto
|
||||
lua5_3
|
||||
sqlite
|
||||
jsoncpp
|
||||
boost
|
||||
zlib
|
||||
curl
|
||||
git
|
||||
libusb-compat-0_1
|
||||
cereal
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_BUILD_TYPE=Release"
|
||||
"-DUSE_BUILTIN_MQTT=false"
|
||||
"-DUSE_BUILTIN_LUA=false"
|
||||
"-DUSE_BUILTIN_SQLITE=false"
|
||||
"-DUSE_BUILTIN_JSONCPP=false"
|
||||
"-DUSE_BUILTIN_ZLIB=false"
|
||||
"-DUSE_OPENSSL_STATIC=false"
|
||||
"-DUSE_STATIC_BOOST=false"
|
||||
"-DUSE_BUILTIN_MINIZIP=true"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/domoticz
|
||||
cp -r $src/www $out/share/domoticz/
|
||||
cp -r $src/Config $out/share/domoticz
|
||||
cp -r $src/scripts $out/share/domoticz
|
||||
cp -r $src/plugins $out/share/domoticz
|
||||
|
||||
mkdir -p $out/bin
|
||||
cp domoticz $out/bin
|
||||
wrapProgram $out/bin/domoticz --set LD_LIBRARY_PATH ${python3}/lib;
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Home automation system";
|
||||
longDescription = ''
|
||||
Domoticz is a home automation system that lets you monitor and configure
|
||||
various devices like: lights, switches, various sensors/meters like
|
||||
temperature, rain, wind, UV, electra, gas, water and much more
|
||||
'';
|
||||
maintainers = with maintainers; [ edcragg ];
|
||||
homepage = "https://www.domoticz.com/";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.all;
|
||||
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/staging-next/domoticz.x86_64-darwin
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue