2024-07-31 23:59:21 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
2021-01-19 06:50:56 +00:00
|
|
|
doxygen,
|
|
|
|
fontconfig,
|
|
|
|
graphviz-nox,
|
|
|
|
libxml2,
|
|
|
|
pkg-config,
|
|
|
|
which,
|
2018-04-07 18:11:56 +00:00
|
|
|
systemd,
|
|
|
|
}:
|
|
|
|
|
2021-04-03 10:01:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "openzwave";
|
2022-09-05 03:32:03 +00:00
|
|
|
version = "1.6-unstable-2022-11-17";
|
2018-04-07 18:11:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-04-03 10:01:27 +00:00
|
|
|
owner = "OpenZWave";
|
2018-04-07 18:11:56 +00:00
|
|
|
repo = "open-zwave";
|
2022-09-05 03:32:03 +00:00
|
|
|
rev = "3fff11d246a0d558d26110e1db6bd634a1b347c0";
|
|
|
|
hash = "sha256-CLK2MeoTmZ8GMKb1OAZFNLyc4C+k+REK2w+WQxZv0/E=";
|
2018-04-07 18:11:56 +00:00
|
|
|
};
|
|
|
|
|
2021-04-03 10:01:27 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"doc"
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
doxygen
|
|
|
|
fontconfig
|
|
|
|
graphviz-nox
|
|
|
|
libxml2
|
|
|
|
pkg-config
|
|
|
|
which
|
|
|
|
];
|
2018-04-07 18:11:56 +00:00
|
|
|
|
|
|
|
buildInputs = [ systemd ];
|
|
|
|
|
2018-06-11 22:55:44 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2018-04-07 18:11:56 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-04-03 10:01:27 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
2018-04-07 18:11:56 +00:00
|
|
|
|
|
|
|
FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
|
|
|
|
FONTCONFIG_PATH = "${fontconfig.out}/etc/fonts/";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace cpp/src/Options.cpp \
|
|
|
|
--replace /etc/openzwave $out/etc/openzwave
|
2022-09-05 03:32:03 +00:00
|
|
|
substituteInPlace cpp/build/Makefile \
|
|
|
|
--replace "-Werror" "-Werror -Wno-format"
|
2018-04-07 18:11:56 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-04-07 18:11:56 +00:00
|
|
|
description = "C++ library to control Z-Wave Networks via a USB Z-Wave Controller";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.openzwave.net/";
|
2018-04-07 18:11:56 +00:00
|
|
|
license = licenses.gpl3;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2018-04-07 18:11:56 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|