2021-06-06 20:34:00 +02:00
|
|
|
{ lib, stdenv, fetchFromGitLab, autoconf-archive, gettext, libtool, intltool, autoconf, automake
|
2021-01-19 07:50:56 +01:00
|
|
|
, glib, gtk3, gtk-doc, libgudev, pkg-config, systemd }:
|
2016-07-27 15:37:39 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-22 13:53:30 +02:00
|
|
|
pname = "iio-sensor-proxy";
|
2021-06-06 20:34:00 +02:00
|
|
|
version = "3.0";
|
2016-07-27 15:37:39 +02:00
|
|
|
|
2021-06-06 20:34:00 +02:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
2016-07-27 15:37:39 +02:00
|
|
|
owner = "hadess";
|
2019-05-22 13:53:30 +02:00
|
|
|
repo = pname;
|
2016-07-27 15:37:39 +02:00
|
|
|
rev = version;
|
2021-06-06 20:34:00 +02:00
|
|
|
sha256 = "0ngbz1vkbjci3ml6p47jh6c6caipvbkm8mxrc8ayr6vc2p9l1g49";
|
2016-07-27 15:37:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
2018-10-11 14:22:25 +02:00
|
|
|
runHook preConfigure
|
|
|
|
|
2016-07-27 15:37:39 +02:00
|
|
|
./autogen.sh --prefix=$out \
|
|
|
|
--with-udevrulesdir=$out/lib/udev/rules.d \
|
|
|
|
--with-systemdsystemunitdir=$out/lib/systemd/system
|
2018-10-11 14:22:25 +02:00
|
|
|
|
|
|
|
runHook postConfigure
|
2016-07-27 15:37:39 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
2018-02-25 03:23:58 +01:00
|
|
|
gtk-doc
|
2016-07-27 15:37:39 +02:00
|
|
|
libgudev
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
autoconf-archive
|
|
|
|
automake
|
|
|
|
gettext
|
|
|
|
intltool
|
|
|
|
libtool
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2016-07-27 15:37:39 +02:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-07-27 15:37:39 +02:00
|
|
|
description = "Proxy for sending IIO sensor data to D-Bus";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/hadess/iio-sensor-proxy";
|
2016-07-27 15:37:39 +02:00
|
|
|
license = licenses.gpl3 ;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|