2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config
|
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";
|
2021-06-26 08:25:28 +00:00
|
|
|
version = "0.16";
|
2018-09-21 09:13:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libratbag";
|
|
|
|
repo = "libratbag";
|
|
|
|
rev = "v${version}";
|
2021-06-26 08:25:28 +00:00
|
|
|
sha256 = "sha256-wJLG0Gxm1RWwW5SCGoa2QscU1VC0r93KZfEMNVg3Tko=";
|
2018-09-21 09:13:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
meson ninja pkg-config gitMinimal swig check valgrind
|
2018-09-21 09:13:49 +00:00
|
|
|
];
|
|
|
|
|
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/"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-21 09:13:49 +00:00
|
|
|
description = "Configuration library for gaming mice";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/libratbag/libratbag";
|
2018-09-21 09:13:49 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|