From d999e481028779e10c1556e208604056015f8026 Mon Sep 17 00:00:00 2001 From: ckie Date: Sun, 27 Mar 2022 14:18:29 +0300 Subject: [PATCH] logiops: init at 0.2.3 Pretty easy to package. Opened issue with upstream to get rid of the one patch needed: https://github.com/PixlOne/logiops/issues/307 --- pkgs/misc/drivers/logiops/default.nix | 26 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 pkgs/misc/drivers/logiops/default.nix diff --git a/pkgs/misc/drivers/logiops/default.nix b/pkgs/misc/drivers/logiops/default.nix new file mode 100644 index 000000000000..71283a406214 --- /dev/null +++ b/pkgs/misc/drivers/logiops/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, udev, libevdev, libconfig }: + +stdenv.mkDerivation rec { + pname = "logiops"; + version = "0.2.3"; + + src = fetchFromGitHub { + owner = "pixlone"; + repo = "logiops"; + rev = "v${version}"; + sha256 = "sha256-1v728hbIM2ODtB+r6SYzItczRJCsbuTvhYD2OUM1+/E="; + }; + + PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system"; + + nativeBuildInputs = [ cmake pkg-config ]; + buildInputs = [ udev libevdev libconfig ]; + + meta = with lib; { + description = "Unofficial userspace driver for HID++ Logitech devices"; + homepage = "https://github.com/PixlOne/logiops"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ ckie ]; + platforms = with platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 705900fdbd0e..3cb2d6ff47d0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24002,7 +24002,9 @@ with pkgs; lmodern = callPackage ../data/fonts/lmodern { }; - logitech-udev-rules = callPackage ../os-specific/linux/logitech-udev-rules {}; + logiops = callPackage ../misc/drivers/logiops { }; + + logitech-udev-rules = callPackage ../os-specific/linux/logitech-udev-rules { }; # lohit-fonts.assamese lohit-fonts.bengali lohit-fonts.devanagari lohit-fonts.gujarati lohit-fonts.gurmukhi # lohit-fonts.kannada lohit-fonts.malayalam lohit-fonts.marathi lohit-fonts.nepali lohit-fonts.odia