2018-09-21 10:13:49 +01:00
|
|
|
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig
|
|
|
|
, glib, systemd, udev, libevdev, gitMinimal, check, valgrind, swig, python3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libratbag-${version}";
|
2019-03-27 22:10:10 +00:00
|
|
|
version = "0.9.905";
|
2018-09-21 10:13:49 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libratbag";
|
|
|
|
repo = "libratbag";
|
|
|
|
rev = "v${version}";
|
2019-03-27 22:10:10 +00:00
|
|
|
sha256 = "0bh1nf9sv7wka0vh5bz9krf2cfxz0rr64hrpdm7imsb6cn39k01y";
|
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 = [
|
|
|
|
glib systemd udev libevdev
|
|
|
|
(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";
|
|
|
|
homepage = https://github.com/libratbag/libratbag;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|