nixpkgs/pkgs/development/libraries/libiio/default.nix
R. RyanTM f640a81198 libiio: 0.15 -> 0.16
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/libiio/versions
2018-12-16 21:10:10 -06:00

39 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub
, cmake, flex, bison
, libxml2, python
}:
stdenv.mkDerivation rec {
name = "libiio-${version}";
version = "0.16";
src = fetchFromGitHub {
owner = "analogdevicesinc";
repo = "libiio";
rev = "refs/tags/v${version}";
sha256 = "1j27kyizdwawskwg1va894qaw3z5dx5s6cla1rd0ngr9kls88q2h";
};
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;
license = licenses.lgpl21;
platforms = platforms.linux;
maintainers = with maintainers; [ thoughtpolice ];
};
}