nixpkgs/pkgs/os-specific/linux/libratbag/default.nix
2019-12-23 13:32:25 -08:00

37 lines
975 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.12";
src = fetchFromGitHub {
owner = "libratbag";
repo = "libratbag";
rev = "v${version}";
sha256 = "00m0f87fqf5i2yvlz5r02f55fbcb13kwlkqx8m69zwya8jhv0j7d";
};
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;
};
}