2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchgit, autoreconfHook, makeWrapper, pkg-config
|
2018-09-17 08:05:36 +01:00
|
|
|
, lrzsz, ncurses, libiconv }:
|
2009-11-18 09:39:59 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "minicom";
|
2018-09-17 08:05:36 +01:00
|
|
|
version = "2.7.1";
|
|
|
|
|
|
|
|
# The repository isn't tagged properly, so we need to use commit refs
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://salsa.debian.org/minicom-team/minicom.git";
|
|
|
|
rev = "6ea8033b6864aa35d14fb8b87e104e4f783635ce";
|
|
|
|
sha256 = "0j95727xni4r122dalp09963gvc1nqa18l1d4wzz8746kw5s2rrb";
|
2009-11-18 09:39:59 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin libiconv;
|
2010-09-03 21:52:32 +01:00
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config ];
|
2010-09-03 21:52:32 +01:00
|
|
|
|
2017-10-24 10:14:24 +01:00
|
|
|
enableParallelBuilding = true;
|
2009-11-18 09:39:59 +00:00
|
|
|
|
2017-10-24 10:14:24 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--enable-lock-dir=/var/lock"
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./xminicom_terminal_paths.patch ];
|
2010-09-03 21:52:32 +01:00
|
|
|
|
2017-10-24 10:14:24 +01:00
|
|
|
preConfigure = ''
|
|
|
|
# Have `configure' assume that the lock directory exists.
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace 'test -d $UUCPLOCK' true
|
2018-09-17 08:05:36 +01:00
|
|
|
'';
|
2017-10-24 10:14:24 +01:00
|
|
|
|
2018-09-17 08:05:36 +01:00
|
|
|
postInstall = ''
|
|
|
|
for f in $out/bin/*minicom ; do
|
|
|
|
wrapProgram $f \
|
2021-01-15 09:19:50 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ lrzsz ]}:$out/bin
|
2018-09-17 08:05:36 +01:00
|
|
|
done
|
2017-10-24 10:14:24 +01:00
|
|
|
'';
|
2010-09-03 21:52:32 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-24 10:14:24 +01:00
|
|
|
description = "Modem control and terminal emulation program";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://salsa.debian.org/minicom-team/minicom";
|
2017-10-24 10:14:24 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
longDescription = ''
|
2018-09-17 08:05:36 +01:00
|
|
|
Minicom is a menu driven communications program. It emulates ANSI
|
|
|
|
and VT102 terminals. It has a dialing directory and auto zmodem
|
2017-10-24 10:14:24 +01:00
|
|
|
download.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2018-07-24 08:25:28 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2009-11-18 09:39:59 +00:00
|
|
|
};
|
|
|
|
}
|