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