@@ -0,0 +1,29 @@
1+{ stdenv, fetchFromGitHub
2+, cmake, flex, bison
3+, libxml2
4+}:
5+
6+stdenv.mkDerivation rec {
7+ name = "libiio-${version}";
8+ version = "0.15";
9+
10+ src = fetchFromGitHub {
11+ owner = "analogdevicesinc";
12+ repo = "libiio";
13+ rev = "refs/tags/v${version}";
14+ sha256 = "05sbvvjka03qi080ad6g2y6gfwqp3n3zv7dpv237dym0zjyxqfa7";
15+ };
16+
17+ outputs = [ "out" "lib" "dev" ];
18+
19+ nativeBuildInputs = [ cmake flex bison ];
20+ buildInputs = [ libxml2 ];
21+
22+ meta = with stdenv.lib; {
23+ description = "API for interfacing with the Linux Industrial I/O Subsystem";
24+ homepage = https://github.com/analogdevicesinc/libiio;
25+ license = licenses.lgpl21;
26+ platforms = platforms.linux;
27+ maintainers = with maintainers; [ thoughtpolice ];
28+ };
29+}