1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-13 16:15:30 +00:00
nixpkgs/pkgs/applications/misc/feedbackd/default.nix

76 lines
1.4 KiB
Nix
Raw Normal View History

2020-12-26 22:03:24 +00:00
{ lib
, stdenv
, fetchFromGitLab
, docbook-xsl-nons
, gobject-introspection
, gtk-doc
, libxslt
2020-12-26 22:03:24 +00:00
, meson
, ninja
, pkg-config
, vala
2020-12-26 22:03:24 +00:00
, wrapGAppsHook
, glib
, gsound
, json-glib
, libgudev
, dbus
2020-12-26 22:03:24 +00:00
}:
stdenv.mkDerivation rec {
pname = "feedbackd";
# Not an actual upstream project release,
# only a Debian package release that is tagged in the upstream repo
version = "0.0.0+git20210426";
outputs = [ "out" "dev" "devdoc" ];
2020-12-26 22:03:24 +00:00
src = fetchFromGitLab {
domain = "source.puri.sm";
owner = "Librem5";
repo = "feedbackd";
rev = "v${version}";
sha256 = "12kdchv11c5ynpv6fbagcx755x5p2kd7acpwjxi9khwdwjsqxlmn";
2020-12-26 22:03:24 +00:00
};
nativeBuildInputs = [
docbook-xsl-nons
gobject-introspection
gtk-doc
libxslt
2020-12-26 22:03:24 +00:00
meson
ninja
pkg-config
vala
wrapGAppsHook
2020-12-26 22:03:24 +00:00
];
buildInputs = [
glib
gsound
json-glib
libgudev
2020-12-26 22:03:24 +00:00
];
mesonFlags = [ "-Dgtk_doc=true" "-Dman=true" ];
checkInputs = [
dbus
];
doCheck = true;
2021-05-01 07:03:42 +01:00
postInstall = ''
mkdir -p $out/lib/udev/rules.d
sed "s|/usr/libexec/|$out/libexec/|" < $src/debian/feedbackd.udev > $out/lib/udev/rules.d/90-feedbackd.rules
'';
2020-12-26 22:03:24 +00:00
meta = with lib; {
description = "A daemon to provide haptic (and later more) feedback on events";
homepage = "https://source.puri.sm/Librem5/feedbackd";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ pacman99 ];
platforms = platforms.linux;
};
}