2018-04-11 09:42:26 +02:00
|
|
|
{ stdenv, fetchFromGitHub, libpulseaudio, python3Packages, extraLibs ? [] }:
|
2016-02-24 20:33:21 +01:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-04-11 09:42:26 +02:00
|
|
|
# i3pystatus moved to rolling release:
|
|
|
|
# https://github.com/enkore/i3pystatus/issues/584
|
2019-07-02 09:59:38 +02:00
|
|
|
version = "unstable-2019-06-10";
|
2016-02-24 20:33:21 +01:00
|
|
|
pname = "i3pystatus";
|
|
|
|
|
2018-04-11 09:42:26 +02:00
|
|
|
src = fetchFromGitHub
|
|
|
|
{
|
|
|
|
owner = "enkore";
|
|
|
|
repo = "i3pystatus";
|
2019-07-02 09:59:38 +02:00
|
|
|
rev = "56ce08d0ff8d5d64950d6b588ebede35a95e0ce2";
|
|
|
|
sha256 = "12938860jbcly1xwhd71jvy2dff28pwv9kqh6mab1859148bzmcg";
|
2016-02-24 20:33:21 +01:00
|
|
|
};
|
|
|
|
|
2019-07-02 07:34:31 +02:00
|
|
|
propagatedBuildInputs = with python3Packages; [ keyring colour netifaces psutil basiciw ] ++
|
2016-02-24 20:33:21 +01:00
|
|
|
[ libpulseaudio ] ++ extraLibs;
|
|
|
|
|
2016-05-14 13:23:29 +02:00
|
|
|
libpulseaudioPath = stdenv.lib.makeLibraryPath [ libpulseaudio ];
|
|
|
|
ldWrapperSuffix = "--suffix LD_LIBRARY_PATH : \"${libpulseaudioPath}\"";
|
2018-04-14 12:12:30 +02:00
|
|
|
# LC_TIME != C results in locale.Error: unsupported locale setting
|
|
|
|
makeWrapperArgs = [ "--set LC_TIME C" ldWrapperSuffix ]; # libpulseaudio.so is loaded manually
|
2016-02-24 20:33:21 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/${pname}-python-interpreter \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
${ldWrapperSuffix}
|
|
|
|
'';
|
|
|
|
|
|
|
|
# no tests in tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/enkore/i3pystatus;
|
|
|
|
description = "A complete replacement for i3status";
|
|
|
|
longDescription = ''
|
|
|
|
i3pystatus is a growing collection of python scripts for status output compatible
|
|
|
|
to i3status / i3bar of the i3 window manager.
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.igsha ];
|
|
|
|
};
|
|
|
|
}
|