Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.0 kB · 86 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ lib, buildPythonPackage, acpi, alsa-utils, coreutils, dbus-python, fetchPypi, file, hatchling, i3, i3ipc, libnotify, lm_sensors, procps, pygobject3, pyserial, pytz, requests, setuptools, tzlocal, wrapGAppsHook3, xorg, glib, gobject-introspection,}:
buildPythonPackage rec { pname = "py3status"; version = "3.60"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-l7qlw3imOXY1nsNiFRB28Z6+uw+YGJGOO4GM7ryr1Q4="; };
nativeBuildInputs = [ hatchling wrapGAppsHook3 gobject-introspection ];
buildInputs = [ glib ];
propagatedBuildInputs = [ pytz requests tzlocal i3ipc pygobject3 pyserial setuptools dbus-python file ];
prePatch = '' sed -i -e "s|'file|'${file}/bin/file|" py3status/parse_config.py sed -i -e "s|\[\"acpi\"|\[\"${acpi}/bin/acpi\"|" py3status/modules/battery_level.py sed -i -e "s|notify-send|${libnotify}/bin/notify-send|" py3status/modules/battery_level.py sed -i -e "s|/usr/bin/whoami|${coreutils}/bin/whoami|" py3status/modules/external_script.py sed -i -e "s|'amixer|'${alsa-utils}/bin/amixer|" py3status/modules/volume_status.py sed -i -e "s|'i3-nagbar|'${i3}/bin/i3-nagbar|" py3status/modules/pomodoro.py sed -i -e "s|'free|'${procps}/bin/free|" py3status/modules/sysdata.py sed -i -e "s|'sensors|'${lm_sensors}/bin/sensors|" py3status/modules/sysdata.py sed -i -e "s|'setxkbmap|'${xorg.setxkbmap}/bin/setxkbmap|" py3status/modules/keyboard_layout.py sed -i -e "s|'xset|'${xorg.xset}/bin/xset|" py3status/modules/keyboard_layout.py '';
dontWrapGApps = true;
preFixup = '' makeWrapperArgs+=("''${gappsWrapperArgs[@]}") '';
doCheck = false;
meta = with lib; { description = "Extensible i3status wrapper"; homepage = "https://github.com/ultrabug/py3status"; changelog = "https://github.com/ultrabug/py3status/blob/${version}/CHANGELOG"; license = licenses.bsd3; maintainers = [ ]; };}