refactor: rfc formatting

This commit is contained in:
2024-04-03 23:12:53 +02:00
parent f06b3b1436
commit 16d3816918
34 changed files with 477 additions and 251 deletions

View File

@@ -1,4 +1,11 @@
{ lib, pkgs, buildGoModule, fetchFromGitHub, hidapi, udev, }:
{
lib,
pkgs,
buildGoModule,
fetchFromGitHub,
hidapi,
udev,
}:
buildGoModule rec {
pname = "gbmonctl";
version = "1d01a090";
@@ -9,15 +16,17 @@ buildGoModule rec {
hash = "sha256-KeBdGtQWz9TBmk1HdXlkIs2r2aZ+EO8WhNaGbsFBBR8=";
};
vendorHash = "sha256-cEqpEaX4eJ/6um9qbw/kzg9/vesOWmdiHzZ7IodVV9c=";
buildInputs = [ hidapi udev ];
buildInputs = [
hidapi
udev
];
postInstall = ''
mkdir -p $out/bin $out/lib/udev/rules.d
echo 'KERNEL=="hidraw*", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="1100", MODE="0666", TAG+="uaccess"' \
> $out/lib/udev/rules.d/99-gigabyte-monitor.rules
'';
meta = with lib; {
description =
"A CLI tool to change monitor settings over USB to the Gigabyte M32U";
description = "A CLI tool to change monitor settings over USB to the Gigabyte M32U";
homepage = "https://github.com/kelvie/gbmonctl";
};
}