mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
openzwave: Init at 2018-04-04
This commit is contained in:
parent
a05f246bdd
commit
e0fc3b5fa1
56
pkgs/development/libraries/openzwave/default.nix
Normal file
56
pkgs/development/libraries/openzwave/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user