2024-02-29 20:09:43 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
cmake,
|
|
|
|
glib,
|
|
|
|
udev,
|
|
|
|
libevdev,
|
|
|
|
libconfig,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (oldAttrs: {
|
|
|
|
pname = "logiops";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.3.5";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PixlOne";
|
|
|
|
repo = "logiops";
|
|
|
|
rev = "v${oldAttrs.version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-GAnlPqjIFGyOWwYFs7gth2m9ITc1jyiaW0sWwQ2zFOs=";
|
2024-02-29 20:09:43 +00:00
|
|
|
# In v0.3.0, the `ipcgull` submodule was added as a dependency
|
|
|
|
# https://github.com/PixlOne/logiops/releases/tag/v0.3.0
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./pkgs0001-Make-DBUS_SYSTEM_POLICY_INSTALL_DIR-externally-overr.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
udev
|
|
|
|
libevdev
|
|
|
|
libconfig
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DLOGIOPS_VERSION=${oldAttrs.version}"
|
|
|
|
"-DDBUS_SYSTEM_POLICY_INSTALL_DIR=${placeholder "out"}/share/dbus-1/system.d"
|
|
|
|
];
|
|
|
|
|
|
|
|
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Unofficial userspace driver for HID++ Logitech devices";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "logid";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://github.com/PixlOne/logiops";
|
|
|
|
license = licenses.gpl3Plus;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2024-02-29 20:09:43 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
})
|