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
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonApplication,
|
|
fetchFromGitHub,
|
|
atk,
|
|
gobject-introspection,
|
|
wrapGAppsHook3,
|
|
click,
|
|
hidapi,
|
|
psutil,
|
|
pygobject3,
|
|
udevCheckHook,
|
|
stdenv,
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "cm-rgb";
|
|
version = "0.3.6";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gfduszynski";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-m0ZAjSLRzcjzygLEbvCiDd7krc1gRqTg1ZV4H/o2c68=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
atk
|
|
|
|
# Populate GI_TYPELIB_PATH
|
|
gobject-introspection
|
|
wrapGAppsHook3
|
|
udevCheckHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
hidapi
|
|
psutil
|
|
pygobject3
|
|
];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/etc/udev/rules.d
|
|
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="2516", ATTR{idProduct}=="0051", TAG+="uaccess"' \
|
|
> $out/etc/udev/rules.d/60-cm-rgb.rules
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Control AMD Wraith Prism RGB LEDs";
|
|
longDescription = ''
|
|
cm-rgb controls AMD Wraith Prism RGB LEDS.
|
|
|
|
To permit non-root accounts to use this utility on
|
|
NixOS, add this package to <literal>services.udev.packages</literal>
|
|
in <filename>configuration.nix</filename>.
|
|
'';
|
|
homepage = "https://github.com/gfduszynski/cm-rgb";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = [ ];
|
|
};
|
|
}
|