uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
59
pkgs/tools/system/cm-rgb/default.nix
Normal file
59
pkgs/tools/system/cm-rgb/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, atk
|
||||
, gobject-introspection
|
||||
, wrapGAppsHook
|
||||
, 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
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
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; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue