mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
5533f8b718
feat: Add multiple version support. refactor: Remove unnecessary code. The `DBus` handling is already done via the changed patch file. chore: Fix formatting. refactor: Remove confusing comment. refactor: Abide by `by-name` CI. https://github.com/NixOS/nixpkgs/actions/runs/7968015723/job/21751618054?pr=289701 fix: Remove unnecessary CMake build flag. Nixpkgs already always builds Release, so this is redundant.
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
cmake,
|
|
glib,
|
|
udev,
|
|
libevdev,
|
|
libconfig,
|
|
}:
|
|
|
|
stdenv.mkDerivation (oldAttrs: {
|
|
pname = "logiops";
|
|
version = "0.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PixlOne";
|
|
repo = "logiops";
|
|
rev = "v${oldAttrs.version}";
|
|
sha256 = "sha256-9nFTud5szQN8jpG0e/Bkp+I9ELldfo66SdfVCUTuekg=";
|
|
# 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";
|
|
homepage = "https://github.com/PixlOne/logiops";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ ckie ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
})
|