2022-06-16 17:23:12 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, autoreconfHook, makeWrapper, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, lrzsz, ncurses, libiconv }:
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "minicom";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "2.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "salsa.debian.org";
|
|
|
|
owner = "minicom-team";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "165zhi88swvkhl3v17223r0f27hb3y0qzrgl51jkk0my2m4xscgg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin libiconv;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--enable-lock-dir=/var/lock"
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./xminicom_terminal_paths.patch ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# Have `configure' assume that the lock directory exists.
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace 'test -d $UUCPLOCK' true
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for f in $out/bin/*minicom ; do
|
|
|
|
wrapProgram $f \
|
2021-01-15 22:18:51 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ lrzsz ]}:$out/bin
|
2020-04-24 23:36:52 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Modem control and terminal emulation program";
|
|
|
|
homepage = "https://salsa.debian.org/minicom-team/minicom";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
longDescription = ''
|
|
|
|
Minicom is a menu driven communications program. It emulates ANSI
|
|
|
|
and VT102 terminals. It has a dialing directory and auto zmodem
|
|
|
|
download.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2023-02-02 18:25:31 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|