Commit fce975cf authored by lucasew's avatar lucasew
Browse files

i3pystatus: nixfmt-rfc-style



Signed-off-by: default avatarlucasew <lucas59356@gmail.com>
parent 4613bc2e
Loading
Loading
Loading
Loading
+35 −19
Original line number Diff line number Diff line
{ 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 = ''
@@ -75,6 +88,9 @@ python3Packages.buildPythonApplication rec {
    '';
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = [ maintainers.igsha maintainers.lucasew ];
    maintainers = [
      maintainers.igsha
      maintainers.lucasew
    ];
  };
}