4fc29cb41f
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
36 lines
977 B
Nix
36 lines
977 B
Nix
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig
|
|
, glib, systemd, udev, libevdev, gitMinimal, check, valgrind, swig, python3
|
|
, json-glib, libunistring }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libratbag";
|
|
version = "0.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libratbag";
|
|
repo = "libratbag";
|
|
rev = "v${version}";
|
|
sha256 = "1fpwp2sj8mf98bqasq2h8qwgprxi7k3iw33gcfid3d1lbyiacw0x";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson ninja pkgconfig gitMinimal swig check valgrind
|
|
];
|
|
|
|
buildInputs = [
|
|
glib systemd udev libevdev json-glib libunistring
|
|
(python3.withPackages (ps: with ps; [ evdev pygobject3 ]))
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|