Commit 029b8c50 authored by OPNA2608's avatar OPNA2608
Browse files

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

parent 3650335d
Loading
Loading
Loading
Loading
+17 −15
Original line number Diff line number Diff line
{ 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 {
+6 −8
Original line number Diff line number Diff line
{ 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
+6 −9
Original line number Diff line number Diff line
{ 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;

+11 −11
Original line number Diff line number Diff line
{ 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
+10 −6
Original line number Diff line number Diff line
{ 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; };