16 stdenv.mkDerivation rec {
17 pname = "iio-sensor-proxy";
20 src = fetchFromGitLab {
21 domain = "gitlab.freedesktop.org";
25 hash = "sha256-pFu+nJzj45s7yIKoLWLeiv2AT5vLf6JpdWWQ0JZfnvY=";
29 # upstream meson.build currently doesn't have an option to change the default polkit dir
30 substituteInPlace data/meson.build \
31 --replace 'polkit_policy_directory' "'$out/share/polkit-1/actions'"
50 (lib.mesonOption "udevrulesdir" "${placeholder "out"}/lib/udev/rules.d")
51 (lib.mesonOption "systemdsystemunitdir" "${placeholder "out"}/lib/systemd/system")
55 description = "Proxy for sending IIO sensor data to D-Bus";
56 mainProgram = "monitor-sensor";
57 homepage = "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy";
58 license = licenses.gpl3;
59 maintainers = with maintainers; [ _999eagle ];
60 platforms = platforms.linux;