mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +00:00
37 lines
975 B
Nix
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.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libratbag";
|
|
repo = "libratbag";
|
|
rev = "v${version}";
|
|
sha256 = "10hahpv2n48b5z35d2draka7cz1a9vw53rvwfmpp5dibwnmi81jb";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|