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 {
|
2019-05-22 12:53:30 +01:00
|
|
|
pname = "iio-sensor-proxy";
|
2019-09-26 23:48:37 +01:00
|
|
|
version = "2.8";
|
2016-07-27 14:37:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hadess";
|
2019-05-22 12:53:30 +01:00
|
|
|
repo = pname;
|
2016-07-27 14:37:39 +01:00
|
|
|
rev = version;
|
2019-09-26 23:48:37 +01:00
|
|
|
sha256 = "07rzm1z2p6lh4iv5pyp0p2x5805m9gsh19kcsjls3fi25p3a2c00";
|
2016-07-27 14:37:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
2018-10-11 13:22:25 +01:00
|
|
|
runHook preConfigure
|
|
|
|
|
2016-07-27 14:37:39 +01:00
|
|
|
./autogen.sh --prefix=$out \
|
|
|
|
--with-udevrulesdir=$out/lib/udev/rules.d \
|
|
|
|
--with-systemdsystemunitdir=$out/lib/systemd/system
|
2018-10-11 13:22:25 +01:00
|
|
|
|
|
|
|
runHook postConfigure
|
2016-07-27 14:37:39 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/hadess/iio-sensor-proxy";
|
2016-07-27 14:37:39 +01:00
|
|
|
license = licenses.gpl3 ;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|