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