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