libiio: install python bindings
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
de39960f6f
commit
af48e5783a
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub
|
||||
, cmake, flex, bison
|
||||
, libxml2
|
||||
, libxml2, python
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -14,11 +14,20 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "05sbvvjka03qi080ad6g2y6gfwqp3n3zv7dpv237dym0zjyxqfa7";
|
||||
};
|
||||
|
||||
outputs = [ "out" "lib" "dev" ];
|
||||
outputs = [ "out" "lib" "dev" "python" ];
|
||||
|
||||
nativeBuildInputs = [ cmake flex bison ];
|
||||
buildInputs = [ libxml2 ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $python/lib/${python.libPrefix}/site-packages/
|
||||
touch $python/lib/${python.libPrefix}/site-packages/
|
||||
cp ../bindings/python/iio.py $python/lib/${python.libPrefix}/site-packages/
|
||||
|
||||
substitute ../bindings/python/iio.py $python/lib/${python.libPrefix}/site-packages/iio.py \
|
||||
--replace 'libiio.so.0' $lib/lib/libiio.so.0
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "API for interfacing with the Linux Industrial I/O Subsystem";
|
||||
homepage = https://github.com/analogdevicesinc/libiio;
|
||||
|
@ -17125,6 +17125,11 @@ EOF
|
||||
libtorrentRasterbar = (toPythonModule (pkgs.libtorrentRasterbar.override {
|
||||
inherit python;
|
||||
})).python;
|
||||
|
||||
libiio = (toPythonModule (pkgs.libiio.override {
|
||||
inherit python;
|
||||
})).python;
|
||||
|
||||
});
|
||||
|
||||
in fix' (extends overrides packages)
|
||||
|
Loading…
Reference in New Issue
Block a user