17 pythonEnv = python3.withPackages (ps: with ps; [ snack ]);
19 stdenv.mkDerivation (finalAttrs: {
23 src = fetchFromGitHub {
24 owner = "dustinkirkland";
26 rev = finalAttrs.version;
27 hash = "sha256-NzC9Njsnz14mfKnERGDZw8O3vux0wnfCKwjUeTBQswc=";
37 perl # perl is needed for `lib/byobu/include/*` scripts
46 for file in usr/bin/byobu-export.in usr/lib/byobu/menu; do
47 substituteInPlace $file \
48 --replace "gettext" "${gettext}/bin/gettext"
53 # By some reason the po files are not being compiled
57 # Path where byobu looks for translations, as observed in the source code
59 mkdir -p $out/share/byobu/po/$lang/LC_MESSAGES/
60 msgfmt --verbose $po -o $out/share/byobu/po/$lang/LC_MESSAGES/byobu.mo
63 # Override the symlinks, otherwise they mess with the wrapping
64 cp --remove-destination $out/bin/byobu $out/bin/byobu-screen
65 cp --remove-destination $out/bin/byobu $out/bin/byobu-tmux
67 for file in $out/bin/byobu*; do
68 # We don't use the usual "-wrapped" suffix because arg0 within the shebang
69 # scripts points to the filename and byobu matches against this to know
70 # which backend to start with
71 bname="$(basename $file)"
72 mv "$file" "$out/bin/.$bname"
73 makeWrapper "$out/bin/.$bname" "$out/bin/$bname" \
75 --prefix PATH ":" "$out/bin" \
82 --set BYOBU_PYTHON "${pythonEnv}/bin/python"
87 homepage = "https://www.byobu.org/";
88 description = "Text-based window manager and terminal multiplexer";
90 Byobu is a text-based window manager and terminal multiplexer. It was
91 originally designed to provide elegant enhancements to the otherwise
92 functional, plain, practical GNU Screen, for the Ubuntu server
93 distribution. Byobu now includes an enhanced profiles, convenient
94 keybindings, configuration utilities, and toggle-able system status
95 notifications for both the GNU Screen window manager and the more modern
96 Tmux terminal multiplexer, and works on most Linux, BSD, and Mac
99 license = with lib.licenses; [ gpl3Plus ];
100 mainProgram = "byobu";
101 maintainers = with lib.maintainers; [ AndersonTorres ];
102 platforms = lib.platforms.unix;