mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
cmake,
|
|
glib,
|
|
udev,
|
|
libevdev,
|
|
libconfig,
|
|
}:
|
|
|
|
stdenv.mkDerivation (oldAttrs: {
|
|
pname = "logiops";
|
|
version = "0.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PixlOne";
|
|
repo = "logiops";
|
|
rev = "v${oldAttrs.version}";
|
|
hash = "sha256-IL7jQA3lGhxVLYCFRgeXdadaBlQr+Op9cedHBlLUCWY=";
|
|
# 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";
|
|
mainProgram = "logid";
|
|
homepage = "https://github.com/PixlOne/logiops";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
})
|