openzwave: Init at 2018-04-04

This commit is contained in:
Elis Hirwing 2018-04-07 20:11:56 +02:00
parent a05f246bdd
commit e0fc3b5fa1
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,56 @@
{ stdenv, fetchFromGitHub
, doxygen, fontconfig, graphviz-nox, libxml2, pkgconfig, which
, systemd }:
let
version = "2018-04-04";
in stdenv.mkDerivation rec {
name = "openzwave-${version}";
src = fetchFromGitHub {
owner = "OpenZWave";
repo = "open-zwave";
rev = "ab5fe966fee882bb9e8d78a91db892a60a1863d9";
sha256 = "0yby8ygzjn5zp5vhysxaadbzysqanwd2zakz379299qs454pr2h9";
};
nativeBuildInputs = [ doxygen fontconfig graphviz-nox libxml2 pkgconfig which ];
buildInputs = [ systemd ];
enableParallelBuilding = true;
installPhase = ''
runHook preInstall
DESTDIR=$out PREFIX= pkgconfigdir=lib/pkgconfig make install $installFlags
runHook postInstall
'';
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
'';
fixupPhase = ''
substituteInPlace $out/lib/pkgconfig/libopenzwave.pc \
--replace prefix= prefix=$out \
--replace dir= dir=$out
substituteInPlace $out/bin/ozw_config \
--replace pcfile=${pkgconfig} pcfile=$out
'';
meta = with stdenv.lib; {
description = "C++ library to control Z-Wave Networks via a USB Z-Wave Controller";
homepage = http://www.openzwave.net/;
license = licenses.gpl3;
maintainers = with maintainers; [ etu ];
platforms = platforms.linux;
};
}

View File

@ -20532,6 +20532,8 @@ with pkgs;
moltengamepad = callPackage ../misc/drivers/moltengamepad { };
openzwave = callPackage ../development/libraries/openzwave { };
mongoc = callPackage ../development/libraries/mongoc { };
mupen64plus = callPackage ../misc/emulators/mupen64plus { };