mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
8f1e764551
* skhd: add meta.mainProgram * yabai: add meta.mainProgram * kitty: add meta.mainProgram * alacritty: add meta.mainProgram * thunar: add meta.mainProgram * looking-glass-client: add meta.mainProgram * thunderbird: add meta.mainProgram * ckb-next: add meta.mainProgram * virt-manager: add meta.mainProgram * gh: add meta.mainProgram
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{ lib, mkDerivation, fetchFromGitHub, substituteAll, udev, stdenv
|
|
, pkg-config, qtbase, cmake, zlib, kmod, libXdmcp, qttools, qtx11extras, libdbusmenu
|
|
, withPulseaudio ? stdenv.isLinux, libpulseaudio
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
version = "0.5.0";
|
|
pname = "ckb-next";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ckb-next";
|
|
repo = "ckb-next";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-yR1myagAqavAR/7lPdufcrJpPmXW7r4N4pxTMF6NbuE=";
|
|
};
|
|
|
|
buildInputs = [
|
|
udev
|
|
qtbase
|
|
zlib
|
|
libXdmcp
|
|
qttools
|
|
qtx11extras
|
|
libdbusmenu
|
|
] ++ lib.optional withPulseaudio libpulseaudio;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
cmake
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DINSTALL_DIR_ANIMATIONS=libexec"
|
|
"-DUDEV_RULE_DIRECTORY=lib/udev/rules.d"
|
|
"-DFORCE_INIT_SYSTEM=systemd"
|
|
"-DDISABLE_UPDATER=1"
|
|
];
|
|
|
|
patches = [
|
|
./install-dirs.patch
|
|
(substituteAll {
|
|
name = "ckb-next-modprobe.patch";
|
|
src = ./modprobe.patch;
|
|
inherit kmod;
|
|
})
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Driver and configuration tool for Corsair keyboards and mice";
|
|
homepage = "https://github.com/ckb-next/ckb-next";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
mainProgram = "ckb-next";
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|