Merge pull request #245773 from 999eagle/update/iio-sensor-proxy
This commit is contained in:
commit
f7cff68f65
|
@ -1,51 +1,58 @@
|
||||||
{ lib, stdenv, fetchFromGitLab, autoconf-archive, gettext, libtool, intltool, autoconf, automake
|
{ lib
|
||||||
, glib, gtk3, gtk-doc, libgudev, pkg-config, systemd }:
|
, stdenv
|
||||||
|
, fetchFromGitLab
|
||||||
|
, cmake
|
||||||
|
, libxml2
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, libgudev
|
||||||
|
, systemd
|
||||||
|
, polkit
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "iio-sensor-proxy";
|
pname = "iio-sensor-proxy";
|
||||||
version = "3.0";
|
version = "3.5";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
domain = "gitlab.freedesktop.org";
|
domain = "gitlab.freedesktop.org";
|
||||||
owner = "hadess";
|
owner = "hadess";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0ngbz1vkbjci3ml6p47jh6c6caipvbkm8mxrc8ayr6vc2p9l1g49";
|
hash = "sha256-pFu+nJzj45s7yIKoLWLeiv2AT5vLf6JpdWWQ0JZfnvY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
configurePhase = ''
|
postPatch = ''
|
||||||
runHook preConfigure
|
# upstream meson.build currently doesn't have an option to change the default polkit dir
|
||||||
|
substituteInPlace data/meson.build \
|
||||||
./autogen.sh --prefix=$out \
|
--replace 'polkit_policy_directory' "'$out/share/polkit-1/actions'"
|
||||||
--with-udevrulesdir=$out/lib/udev/rules.d \
|
|
||||||
--with-systemdsystemunitdir=$out/lib/systemd/system
|
|
||||||
|
|
||||||
runHook postConfigure
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
glib
|
|
||||||
gtk3
|
|
||||||
gtk-doc
|
|
||||||
libgudev
|
libgudev
|
||||||
systemd
|
systemd
|
||||||
|
polkit
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoconf
|
meson
|
||||||
autoconf-archive
|
cmake
|
||||||
automake
|
libxml2
|
||||||
gettext
|
ninja
|
||||||
intltool
|
|
||||||
libtool
|
|
||||||
pkg-config
|
pkg-config
|
||||||
];
|
];
|
||||||
|
|
||||||
|
mesonFlags = [
|
||||||
|
(lib.mesonOption "udevrulesdir" "${placeholder "out"}/lib/udev/rules.d")
|
||||||
|
(lib.mesonOption "systemdsystemunitdir" "${placeholder "out"}/lib/systemd/system")
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Proxy for sending IIO sensor data to D-Bus";
|
description = "Proxy for sending IIO sensor data to D-Bus";
|
||||||
homepage = "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy";
|
homepage = "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy";
|
||||||
license = licenses.gpl3 ;
|
license = licenses.gpl3;
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
maintainers = with maintainers; [ _999eagle ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue