feat: use nixfmt

This commit is contained in:
2024-03-26 17:44:14 +01:00
parent 59e6ed992a
commit 3ad3491970
29 changed files with 444 additions and 558 deletions

View File

@@ -1,11 +1,4 @@
{
lib,
pkgs,
buildGoModule,
fetchFromGitHub,
hidapi,
udev,
}:
{ lib, pkgs, buildGoModule, fetchFromGitHub, hidapi, udev, }:
buildGoModule rec {
pname = "gbmonctl";
version = "1d01a090";
@@ -16,14 +9,15 @@ 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";
};
}

View File

@@ -1,9 +1,4 @@
{
stdenv,
fetchFromGitHub,
glibc,
lib,
}:
{ stdenv, fetchFromGitHub, glibc, lib, }:
stdenv.mkDerivation {
name = "lpc21isp";
src = fetchFromGitHub {
@@ -12,16 +7,17 @@ stdenv.mkDerivation {
rev = "cf89d0b122ef02358e0f130b8f32cb804c11a54e";
hash = "sha256-BZvtJMtVyqsCPVhp/QL5cXJY8Q25T/RzYzHMutE24hk=";
};
nativeBuildInputs = [glibc.static];
nativeBuildInputs = [ glibc.static ];
installPhase = ''
mkdir -p $out/bin
cp lpc21isp $out/bin
'';
meta = with lib; {
description = "Portable command line ISP for NXP LPC family and Analog Devices ADUC70xx";
description =
"Portable command line ISP for NXP LPC family and Analog Devices ADUC70xx";
homepage = "https://github.com/capiman/lpc21isp";
license = licenses.lgpl3Plus;
maintainers = [maintainers.theaninova];
maintainers = [ maintainers.theaninova ];
mainProgram = "lpc21isp";
};
}