From 94bc565cec30baee580bcab32e2a7bc6fc11efa6 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 16 Sep 2024 23:28:29 +0200 Subject: [PATCH] smartmontools: run nixfmt --- pkgs/tools/system/smartmontools/default.nix | 39 +++++++++++++-------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix index 7394fb7e59e7..50765fa2e170 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, fetchurl -, autoreconfHook -, enableMail ? false -, gnused -, hostname -, mailutils -, systemdLibs -, IOKit -, ApplicationServices +{ + lib, + stdenv, + fetchurl, + autoreconfHook, + enableMail ? false, + gnused, + hostname, + mailutils, + systemdLibs, + IOKit, + ApplicationServices, }: let @@ -19,7 +20,13 @@ let sha256 = "sha256-0dtLev4JjeHsS259+qOgg19rz4yjkeX4D3ooUgS4RTI="; name = "smartmontools-drivedb.h"; }; - scriptPath = lib.makeBinPath ([ gnused hostname ] ++ lib.optionals enableMail [ mailutils ]); + scriptPath = lib.makeBinPath ( + [ + gnused + hostname + ] + ++ lib.optionals enableMail [ mailutils ] + ); in stdenv.mkDerivation rec { @@ -46,8 +53,12 @@ stdenv.mkDerivation rec { ]; nativeBuildInputs = [ autoreconfHook ]; - buildInputs = lib.optionals stdenv.isLinux [ systemdLibs ] - ++ lib.optionals stdenv.isDarwin [ IOKit ApplicationServices ]; + buildInputs = + lib.optionals stdenv.isLinux [ systemdLibs ] + ++ lib.optionals stdenv.isDarwin [ + IOKit + ApplicationServices + ]; enableParallelBuilding = true; meta = with lib; {