2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, ncurses
|
|
|
|
, libxcrypt
|
|
|
|
, utmp
|
|
|
|
, pam ? null
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "screen";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "4.9.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/screen/${pname}-${version}.tar.gz";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-Js7z48QlccDUhK1vrxEMXBUJH7+HKwb6eqR2bHQFrGk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
configureFlags = [
|
2020-04-24 23:36:52 +00:00
|
|
|
"--enable-telnet"
|
|
|
|
"--enable-pam"
|
|
|
|
"--with-sys-screenrc=/etc/screenrc"
|
|
|
|
"--enable-colors256"
|
2022-09-09 14:08:57 +00:00
|
|
|
"--enable-rxvt_osc"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
2022-10-30 15:09:59 +00:00
|
|
|
libxcrypt
|
2022-02-10 20:34:41 +00:00
|
|
|
] ++ lib.optional stdenv.isLinux pam
|
|
|
|
++ lib.optional stdenv.isDarwin utmp;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gnu.org/software/screen/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Window manager that multiplexes a physical terminal";
|
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' GNU Screen is a full-screen window manager that multiplexes a physical
|
|
|
|
terminal between several processes, typically interactive shells.
|
|
|
|
Each virtual terminal provides the functions of the DEC VT100
|
|
|
|
terminal and, in addition, several control functions from the ANSI
|
|
|
|
X3.64 (ISO 6429) and ISO 2022 standards (e.g., insert/delete line
|
|
|
|
and support for multiple character sets). There is a scrollback
|
|
|
|
history buffer for each virtual terminal and a copy-and-paste
|
|
|
|
mechanism that allows the user to move text regions between windows.
|
|
|
|
When screen is called, it creates a single window with a shell in it
|
|
|
|
(or the specified command) and then gets out of your way so that you
|
|
|
|
can use the program as you normally would. Then, at any time, you
|
|
|
|
can create new (full-screen) windows with other programs in them
|
|
|
|
(including more shells), kill the current window, view a list of the
|
|
|
|
active windows, turn output logging on and off, copy text between
|
|
|
|
windows, view the scrollback history, switch between windows, etc.
|
|
|
|
All windows run their programs completely independent of each other.
|
|
|
|
Programs continue to run when their window is currently not visible
|
|
|
|
and even when the whole screen session is detached from the users
|
|
|
|
terminal.
|
|
|
|
'';
|
|
|
|
|
|
|
|
platforms = platforms.unix;
|
2021-10-17 02:12:59 +00:00
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|