2016-07-27 14:37:39 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoconf-archive, gettext, libtool, intltool, autoconf, automake
|
2018-02-25 02:23:58 +00:00
|
|
|
, glib, gtk3, gtk-doc, libgudev, pkgconfig, systemd }:
|
2016-07-27 14:37:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "iio-sensor-proxy-${version}";
|
2018-02-27 03:13:30 +00:00
|
|
|
version = "2.4";
|
2016-07-27 14:37:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hadess";
|
|
|
|
repo = "iio-sensor-proxy";
|
|
|
|
rev = version;
|
2018-02-27 03:13:30 +00:00
|
|
|
sha256 = "1c8izq73c00gvv0jc6zby5hcircs4cb16a1d3ivp1i1iflknj46n";
|
2016-07-27 14:37:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
./autogen.sh --prefix=$out \
|
|
|
|
--with-udevrulesdir=$out/lib/udev/rules.d \
|
|
|
|
--with-systemdsystemunitdir=$out/lib/systemd/system
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
2018-02-25 02:23:58 +00:00
|
|
|
gtk-doc
|
2016-07-27 14:37:39 +01:00
|
|
|
libgudev
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
autoconf-archive
|
|
|
|
automake
|
|
|
|
gettext
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Proxy for sending IIO sensor data to D-Bus";
|
|
|
|
homepage = https://github.com/hadess/iio-sensor-proxy;
|
|
|
|
license = licenses.gpl3 ;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|