Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ stdenv, fetchFromGitHub, doxygen, pkgconfig, tree | ||
, udev }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "openzwave-${version}"; | ||
version = "1.5"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "OpenZWave"; | ||
repo = "open-zwave"; | ||
rev = "V${version}"; | ||
sha256 = "0fbffhm9yaj6w0p9agdqv95808cai2744ckryzhlwk31vznn51si"; | ||
}; | ||
|
||
buildInputs = [ udev ]; | ||
|
||
nativeBuildInputs = [ doxygen pkgconfig tree ]; | ||
|
||
enableParallelBuilding = true; | ||
|
||
preBuild = '' | ||
export DESTDIR=$out | ||
export PREFIX=./ | ||
''; | ||
|
||
# We don't just force-remove in case a new version leaves other stuff behind | ||
# that we need to move out of the way | ||
postInstall = '' | ||
mv $out/usr/lib/pkgconfig $out/lib/ | ||
rmdir $out/usr{/lib,} | ||
substituteInPlace $out/bin/ozw_config \ | ||
--replace /usr/lib $out/lib | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "C++ library to control Z-Wave Networks via a USB Z-Wave Controller"; | ||
homepage = https://www.openzwave.net; | ||
license = licenses.gpl3; | ||
maintainers = with maintainers; [ peterhoeg ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ stdenv, buildPythonPackage, fetchPypi, pkgconfig, libopenzwave, cython, six }: | ||
|
||
buildPythonPackage rec { | ||
pname = "python_openzwave"; | ||
version = "0.4.4"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
extension = "zip"; | ||
sha256 = "17wdgwg212agj1gxb2kih4cvhjb5bprir4x446s8qwx0mz03azk2"; | ||
}; | ||
|
||
buildInputs = [ libopenzwave ]; | ||
|
||
nativeBuildInputs = [ pkgconfig ]; | ||
|
||
propagatedBuildInputs = [ cython six ]; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Python wrapper for openzwave"; | ||
inherit (libopenzwave.meta) homepage license maintainers; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters