mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 06:55:10 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchFromGitHub
|
|
, atk
|
|
, gobject-introspection
|
|
, wrapGAppsHook3
|
|
, click
|
|
, hidapi
|
|
, psutil
|
|
, pygobject3
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "cm-rgb";
|
|
version = "0.3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gfduszynski";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-m0ZAjSLRzcjzygLEbvCiDd7krc1gRqTg1ZV4H/o2c68=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
atk
|
|
|
|
# Populate GI_TYPELIB_PATH
|
|
gobject-introspection
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
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 = with maintainers; [ ];
|
|
};
|
|
}
|