nixpkgs/pkgs/by-name/op/openzwave/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.3 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitHub,
doxygen,
fontconfig,
graphviz-nox,
libxml2,
pkg-config,
which,
2018-04-07 18:11:56 +00:00
systemd,
}:
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "openzwave";
version = "1.6-unstable-2022-11-17";
2018-04-07 18:11:56 +00:00
src = fetchFromGitHub {
owner = "OpenZWave";
2018-04-07 18:11:56 +00:00
repo = "open-zwave";
rev = "3fff11d246a0d558d26110e1db6bd634a1b347c0";
hash = "sha256-CLK2MeoTmZ8GMKb1OAZFNLyc4C+k+REK2w+WQxZv0/E=";
2018-04-07 18:11:56 +00:00
};
outputs = [
"out"
"doc"
];
nativeBuildInputs = [
doxygen
fontconfig
graphviz-nox
libxml2
pkg-config
which
];
2018-04-07 18:11:56 +00:00
buildInputs = [ systemd ];
hardeningDisable = [ "format" ];
2018-04-07 18:11:56 +00:00
enableParallelBuilding = true;
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
substituteInPlace cpp/build/Makefile \
--replace "-Werror" "-Werror -Wno-format"
2018-04-07 18:11:56 +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";
homepage = "http://www.openzwave.net/";
2018-04-07 18:11:56 +00:00
license = licenses.gpl3;
maintainers = [ ];
2018-04-07 18:11:56 +00:00
platforms = platforms.linux;
};
}