git.iko.soy/typeable/nixpkgs
on master help sign in
i3pystatus: 2019-06-10 -> 2020-06-12
commit4378ec4805ea6cb501d566692ddb3c5638d94b74 authorJörg Thalheim <joerg@thalheim.io> dateMon 15 Jun 2020, 08:34 (6 years ago) parent5fea23b
1 file changed+15−9
pkgs/applications/window-managers/i3/pystatus.nix+15−9
pkgs/applications/window-managers/i3/pystatus.nix+15−9
@@ -1,26 +1,32 @@
11{ stdenv, fetchFromGitHub, libpulseaudio, python3Packages, extraLibs ? [] }:
22
3−python3Packages.buildPythonApplication rec {
3+let
4+ ldWrapperSuffix = "--suffix LD_LIBRARY_PATH : \"${stdenv.lib.makeLibraryPath [ libpulseaudio ]}\"";
5+in python3Packages.buildPythonApplication rec {
46 # i3pystatus moved to rolling release:
57 # https://github.com/enkore/i3pystatus/issues/584
6− version = "unstable-2019-06-10";
8+ version = "unstable-2020-06-12";
79 pname = "i3pystatus";
810
9− src = fetchFromGitHub
10− {
11+ src = fetchFromGitHub {
1112 owner = "enkore";
1213 repo = "i3pystatus";
13− rev = "56ce08d0ff8d5d64950d6b588ebede35a95e0ce2";
14− sha256 = "12938860jbcly1xwhd71jvy2dff28pwv9kqh6mab1859148bzmcg";
14+ rev = "dad5eb0c5c8a2ecd20c37ade4732586c6e53f44b";
15+ sha256 = "18ygvkl92yr69kxsym57k1mc90asdxpz4b943i61qr0s4fc5n4mq";
1516 };
1617
1718 propagatedBuildInputs = with python3Packages; [ keyring colour netifaces psutil basiciw ] ++
1819 [ libpulseaudio ] ++ extraLibs;
1920
20− libpulseaudioPath = stdenv.lib.makeLibraryPath [ libpulseaudio ];
21− ldWrapperSuffix = "--suffix LD_LIBRARY_PATH : \"${libpulseaudioPath}\"";
2221 # LC_TIME != C results in locale.Error: unsupported locale setting
23− makeWrapperArgs = [ "--set LC_TIME C" ldWrapperSuffix ]; # libpulseaudio.so is loaded manually
22+ makeWrapperArgs = [
23+ "--set" "LC_TIME" "C"
24+ ldWrapperSuffix
25+ ]; # libpulseaudio.so is loaded manually
26+
27+ postConfigure = ''
28+ makeWrapperArgs+=("--set" "GI_TYPELIB_PATH" "$GI_TYPELIB_PATH")
29+ '';
2430
2531 postInstall = ''
2632 makeWrapper ${python3Packages.python.interpreter} $out/bin/${pname}-python-interpreter \