nixpkgs/pkgs/os-specific/linux/libratbag/default.nix

37 lines
977 B
Nix
Raw Normal View History

{ 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 }:
stdenv.mkDerivation rec {
pname = "libratbag";
2020-11-02 19:42:21 +00:00
version = "0.15";
src = fetchFromGitHub {
owner = "libratbag";
repo = "libratbag";
rev = "v${version}";
2020-11-02 19:42:21 +00:00
sha256 = "0z6ps5aqwjmbdvahs80fh9cdgcvp4q4w3kfycmzv4kzgzihjki7b";
};
nativeBuildInputs = [
meson ninja pkgconfig gitMinimal swig check valgrind
];
buildInputs = [
2019-09-19 20:00:55 +00:00
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;
};
}