i3pystatus: nixfmt-rfc-style
Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user