Files
nixpkgs/pkgs/by-name/ke/keyleds/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

66 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
pkg-config,
libuv,
libX11,
libXi,
libyaml,
luajit,
udev,
}:
stdenv.mkDerivation {
pname = "keyleds";
version = "unstable-2021-04-08";
src = fetchFromGitHub {
owner = "keyleds";
repo = "keyleds";
rev = "171361654a64b570d747c2d196acb2da4b8dc293";
sha256 = "sha256-mojgHMT0gni0Po0hiZqQ8eMzqfwUipXue1uqpionihw=";
};
# This commit corresponds to the following open PR:
# https://github.com/keyleds/keyleds/pull/74
# According to the author of the PR, the maintainer of keyleds is unreachable.
# This patch fixes the build process which is broken on the current master branch of keyleds.
patches = [
(fetchpatch {
url = "https://github.com/keyleds/keyleds/commit/bffed5eb181127df915002b6ed830f85f15feafd.patch";
sha256 = "sha256-i2N3D/K++34JVqJloNK2UcN473NarIjdjAz6PUhXcNY=";
})
];
strictDeps = true;
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libuv
libX11
libXi
libyaml
luajit
udev
];
enableParallelBuilding = true;
cmakeBuildType = "MinSizeRel";
meta = {
homepage = "https://github.com/keyleds/keyleds";
description = "Advanced RGB animation service for Logitech keyboards";
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}