From 9a859fb7f9fc7c81b78122e1c47765aa61e7aa28 Mon Sep 17 00:00:00 2001 From: Matt Votava Date: Fri, 21 Sep 2018 02:13:49 -0700 Subject: libratbag: init at v0.9.903 Add package libratbag and service module ratbagd Libratbag contains ratbagd daemon and ratbagctl cli to configure buttons, dpi, leds, etc. of gaming mice. Add mvnetbiz to maintainers. --- pkgs/os-specific/linux/libratbag/default.nix | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/os-specific/linux/libratbag/default.nix (limited to 'pkgs/os-specific/linux') diff --git a/pkgs/os-specific/linux/libratbag/default.nix b/pkgs/os-specific/linux/libratbag/default.nix new file mode 100644 index 00000000000..271dc156695 --- /dev/null +++ b/pkgs/os-specific/linux/libratbag/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig +, glib, systemd, udev, libevdev, gitMinimal, check, valgrind, swig, python3 }: + +stdenv.mkDerivation rec { + name = "libratbag-${version}"; + version = "0.9.903"; + + src = fetchFromGitHub { + owner = "libratbag"; + repo = "libratbag"; + rev = "v${version}"; + sha256 = "0cr5skrb7a5mgj7dkm647ib8336hb88bf11blaf6xldafi8b0jlj"; + }; + + + # todo: python should be in buildInputs, but right now meson propagates + # its own python. see: https://github.com/NixOS/nixpkgs/pull/46020 + nativeBuildInputs = [ + (python3.withPackages (ps: with ps; [ evdev pygobject3 ])) + meson ninja pkgconfig gitMinimal swig check valgrind + ]; + + buildInputs = [ glib systemd udev libevdev ]; + + 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; + }; +} -- cgit 1.4.1