depot/third_party/nixpkgs/pkgs/os-specific/linux/libratbag/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

36 lines
976 B
Nix

{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config
, glib, systemd, udev, libevdev, gitMinimal, check, valgrind, swig, python3
, json-glib, libunistring }:
stdenv.mkDerivation rec {
pname = "libratbag";
version = "0.17";
src = fetchFromGitHub {
owner = "libratbag";
repo = "libratbag";
rev = "v${version}";
sha256 = "sha256-TQ8DVj4yqq3IA0oGnLDz+QNTyNRmGqspEjkPeBmXNew=";
};
nativeBuildInputs = [
meson ninja pkg-config 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 lib; {
description = "Configuration library for gaming mice";
homepage = "https://github.com/libratbag/libratbag";
license = licenses.mit;
maintainers = with maintainers; [ mvnetbiz ];
platforms = platforms.linux;
};
}