coolercontrol.*: nixfmt, drop meta-wide "with lib"

This commit is contained in:
OPNA2608 2024-11-23 02:52:16 +01:00
parent 3650335dcb
commit 029b8c50ea
5 changed files with 50 additions and 49 deletions

View File

@ -1,20 +1,22 @@
{ lib
, rustPlatform
, dbus
, freetype
, gtk3
, libsoup_3
, openssl
, pkg-config
, webkitgtk_4_1
, libappindicator
, makeWrapper
, coolercontrol
{
lib,
rustPlatform,
dbus,
freetype,
gtk3,
libsoup_3,
openssl,
pkg-config,
webkitgtk_4_1,
libappindicator,
makeWrapper,
coolercontrol,
}:
{ version
, src
, meta
{
version,
src,
meta,
}:
rustPlatform.buildRustPackage {

View File

@ -1,9 +1,9 @@
{ python3
}:
{ python3 }:
{ version
, src
, meta
{
version,
src,
meta,
}:
python3.pkgs.buildPythonApplication {
@ -12,9 +12,7 @@ python3.pkgs.buildPythonApplication {
sourceRoot = "${src.name}/coolercontrol-liqctld";
format = "pyproject";
nativeBuildInputs = with python3.pkgs; [
setuptools
];
nativeBuildInputs = with python3.pkgs; [ setuptools ];
propagatedBuildInputs = with python3.pkgs; [
liquidctl

View File

@ -1,10 +1,9 @@
{ buildNpmPackage
, autoPatchelfHook
}:
{ buildNpmPackage, autoPatchelfHook }:
{ version
, src
, meta
{
version,
src,
meta,
}:
buildNpmPackage {
@ -18,9 +17,7 @@ buildNpmPackage {
autoPatchelf node_modules/sass-embedded-linux-x64/dart-sass/src/dart
'';
nativeBuildInputs = [
autoPatchelfHook
];
nativeBuildInputs = [ autoPatchelfHook ];
dontAutoPatchelf = true;

View File

@ -1,13 +1,15 @@
{ rustPlatform
, testers
, libdrm
, coolercontrol
, runtimeShell
{
rustPlatform,
testers,
libdrm,
coolercontrol,
runtimeShell,
}:
{ version
, src
, meta
{
version,
src,
meta,
}:
rustPlatform.buildRustPackage {
@ -18,9 +20,7 @@ rustPlatform.buildRustPackage {
useFetchCargoVendor = true;
cargoHash = "sha256-ZAjaegUgNkKygXqskyeUkWpcqi1Jt7pE8GtqWlaP6/I=";
buildInputs = [
libdrm
];
buildInputs = [ libdrm ];
postPatch = ''
# copy the frontend static resources to a directory for embedding

View File

@ -1,6 +1,7 @@
{ lib
, fetchFromGitLab
, callPackage
{
lib,
fetchFromGitLab,
callPackage,
}:
let
@ -13,12 +14,15 @@ let
hash = "sha256-9l10X4uDv3KJz582QQMhqh38bwDtQVHm9HdAVNC6Kfg=";
};
meta = with lib; {
meta = {
description = "Monitor and control your cooling devices";
homepage = "https://gitlab.com/coolercontrol/coolercontrol";
license = licenses.gpl3Plus;
license = lib.licenses.gpl3Plus;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ codifryed OPNA2608 ];
maintainers = with lib.maintainers; [
codifryed
OPNA2608
];
};
applySharedDetails = drv: drv { inherit version src meta; };