i3pystatus: fix desktop notifications
This commit is contained in:
parent
4378ec4805
commit
5360dec935
@ -1,8 +1,13 @@
|
|||||||
{ stdenv, fetchFromGitHub, libpulseaudio, python3Packages, extraLibs ? [] }:
|
{ stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, libpulseaudio
|
||||||
|
, libnotify
|
||||||
|
, gobject-introspection
|
||||||
|
, python3Packages
|
||||||
|
, wrapGAppsHook
|
||||||
|
, extraLibs ? [] }:
|
||||||
|
|
||||||
let
|
python3Packages.buildPythonApplication rec {
|
||||||
ldWrapperSuffix = "--suffix LD_LIBRARY_PATH : \"${stdenv.lib.makeLibraryPath [ libpulseaudio ]}\"";
|
|
||||||
in python3Packages.buildPythonApplication rec {
|
|
||||||
# i3pystatus moved to rolling release:
|
# i3pystatus moved to rolling release:
|
||||||
# https://github.com/enkore/i3pystatus/issues/584
|
# https://github.com/enkore/i3pystatus/issues/584
|
||||||
version = "unstable-2020-06-12";
|
version = "unstable-2020-06-12";
|
||||||
@ -15,23 +20,26 @@ in python3Packages.buildPythonApplication rec {
|
|||||||
sha256 = "18ygvkl92yr69kxsym57k1mc90asdxpz4b943i61qr0s4fc5n4mq";
|
sha256 = "18ygvkl92yr69kxsym57k1mc90asdxpz4b943i61qr0s4fc5n4mq";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ keyring colour netifaces psutil basiciw ] ++
|
buildInputs = [ libpulseaudio libnotify gobject-introspection ];
|
||||||
[ libpulseaudio ] ++ extraLibs;
|
|
||||||
|
propagatedBuildInputs = with python3Packages; [
|
||||||
|
keyring colour netifaces psutil basiciw pygobject3
|
||||||
|
] ++ extraLibs;
|
||||||
|
|
||||||
# LC_TIME != C results in locale.Error: unsupported locale setting
|
|
||||||
makeWrapperArgs = [
|
makeWrapperArgs = [
|
||||||
|
# LC_TIME != C results in locale.Error: unsupported locale setting
|
||||||
"--set" "LC_TIME" "C"
|
"--set" "LC_TIME" "C"
|
||||||
ldWrapperSuffix
|
"--suffix" "LD_LIBRARY_PATH" ":" "${stdenv.lib.makeLibraryPath [ libpulseaudio ]}"
|
||||||
]; # libpulseaudio.so is loaded manually
|
];
|
||||||
|
|
||||||
postConfigure = ''
|
postPatch = ''
|
||||||
makeWrapperArgs+=("--set" "GI_TYPELIB_PATH" "$GI_TYPELIB_PATH")
|
makeWrapperArgs+=(--set GI_TYPELIB_PATH "$GI_TYPELIB_PATH")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
makeWrapper ${python3Packages.python.interpreter} $out/bin/${pname}-python-interpreter \
|
makeWrapper ${python3Packages.python.interpreter} $out/bin/${pname}-python-interpreter \
|
||||||
--prefix PYTHONPATH : "$PYTHONPATH" \
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
||||||
${ldWrapperSuffix}
|
''${makeWrapperArgs[@]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# no tests in tarball
|
# no tests in tarball
|
||||||
|
Loading…
x
Reference in New Issue
Block a user