From fce975cf98ab0e4199f0d7afd704889a3b7d21d8 Mon Sep 17 00:00:00 2001 From: lucasew Date: Mon, 15 Jul 2024 14:52:27 -0300 Subject: [PATCH] i3pystatus: nixfmt-rfc-style Signed-off-by: lucasew --- pkgs/by-name/i3/i3pystatus/package.nix | 54 +++++++++++++++++--------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/pkgs/by-name/i3/i3pystatus/package.nix b/pkgs/by-name/i3/i3pystatus/package.nix index b3a9e75b6fcb..b2655e34beea 100644 --- a/pkgs/by-name/i3/i3pystatus/package.nix +++ b/pkgs/by-name/i3/i3pystatus/package.nix @@ -1,12 +1,14 @@ -{ lib -, fetchFromGitHub -, libpulseaudio -, libnotify -, gobject-introspection -, python3Packages -, unstableGitUpdater -, fetchpatch -, extraLibs ? [] }: +{ + lib, + fetchFromGitHub, + libpulseaudio, + libnotify, + gobject-introspection, + python3Packages, + unstableGitUpdater, + fetchpatch, + extraLibs ? [ ], +}: python3Packages.buildPythonApplication rec { # i3pystatus moved to rolling release: @@ -39,18 +41,29 @@ python3Packages.buildPythonApplication rec { libnotify ]; - checkInputs = [ - python3Packages.requests - ]; + checkInputs = [ python3Packages.requests ]; - propagatedBuildInputs = with python3Packages; [ - keyring colour netifaces psutil basiciw pygobject3 - ] ++ extraLibs; + propagatedBuildInputs = + with python3Packages; + [ + keyring + colour + netifaces + psutil + basiciw + pygobject3 + ] + ++ extraLibs; makeWrapperArgs = [ # LC_TIME != C results in locale.Error: unsupported locale setting - "--set" "LC_TIME" "C" - "--suffix" "LD_LIBRARY_PATH" ":" "${lib.makeLibraryPath [ libpulseaudio ]}" + "--set" + "LC_TIME" + "C" + "--suffix" + "LD_LIBRARY_PATH" + ":" + "${lib.makeLibraryPath [ libpulseaudio ]}" ]; postPatch = '' @@ -63,7 +76,7 @@ python3Packages.buildPythonApplication rec { ''${makeWrapperArgs[@]} ''; - passthru.updateScript = unstableGitUpdater {}; + passthru.updateScript = unstableGitUpdater { }; meta = with lib; { mainProgram = "i3pystatus"; @@ -75,6 +88,9 @@ python3Packages.buildPythonApplication rec { ''; license = licenses.mit; platforms = platforms.linux; - maintainers = [ maintainers.igsha maintainers.lucasew ]; + maintainers = [ + maintainers.igsha + maintainers.lucasew + ]; }; }