2018-09-21 10:13:49 +01:00
|
|
|
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig
|
2019-09-19 21:00:55 +01:00
|
|
|
, glib, systemd, udev, libevdev, gitMinimal, check, valgrind, swig, python3
|
|
|
|
, json-glib, libunistring }:
|
2018-09-21 10:13:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libratbag";
|
2020-05-22 03:55:10 +01:00
|
|
|
version = "0.14";
|
2018-09-21 10:13:49 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libratbag";
|
|
|
|
repo = "libratbag";
|
|
|
|
rev = "v${version}";
|
2020-05-22 03:55:10 +01:00
|
|
|
sha256 = "1fpwp2sj8mf98bqasq2h8qwgprxi7k3iw33gcfid3d1lbyiacw0x";
|
2018-09-21 10:13:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson ninja pkgconfig gitMinimal swig check valgrind
|
|
|
|
];
|
|
|
|
|
2018-09-25 04:58:22 +01:00
|
|
|
buildInputs = [
|
2019-09-19 21:00:55 +01:00
|
|
|
glib systemd udev libevdev json-glib libunistring
|
2018-09-25 04:58:22 +01:00
|
|
|
(python3.withPackages (ps: with ps; [ evdev pygobject3 ]))
|
|
|
|
];
|
2018-09-21 10:13:49 +01:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dsystemd-unit-dir=./lib/systemd/system/"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Configuration library for gaming mice";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/libratbag/libratbag";
|
2018-09-21 10:13:49 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|