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

37 lines
976 B
Nix
Raw Normal View History

{ 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 }:
stdenv.mkDerivation rec {
pname = "libratbag";
2021-06-26 10:25:28 +02:00
version = "0.16";
src = fetchFromGitHub {
owner = "libratbag";
repo = "libratbag";
rev = "v${version}";
2021-06-26 10:25:28 +02:00
sha256 = "sha256-wJLG0Gxm1RWwW5SCGoa2QscU1VC0r93KZfEMNVg3Tko=";
};
nativeBuildInputs = [
meson ninja pkg-config gitMinimal swig check valgrind
];
buildInputs = [
2019-09-19 22:00:55 +02:00
glib systemd udev libevdev json-glib libunistring
(python3.withPackages (ps: with ps; [ evdev pygobject3 ]))
];
mesonFlags = [
"-Dsystemd-unit-dir=./lib/systemd/system/"
];
meta = with lib; {
description = "Configuration library for gaming mice";
homepage = "https://github.com/libratbag/libratbag";
license = licenses.mit;
maintainers = with maintainers; [ mvnetbiz ];
platforms = platforms.linux;
};
}