2018-09-17 07:05:36 +00:00
|
|
|
{ stdenv, fetchgit, autoreconfHook, makeWrapper, pkgconfig
|
|
|
|
, lrzsz, ncurses, libiconv }:
|
2009-11-18 09:39:59 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "minicom";
|
2018-09-17 07:05:36 +00: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
|
|
|
};
|
|
|
|
|
2018-07-24 07:25:28 +00:00
|
|
|
buildInputs = [ ncurses ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
|
2010-09-03 20:52:32 +00:00
|
|
|
|
2018-09-17 07:05:36 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig ];
|
2010-09-03 20:52:32 +00:00
|
|
|
|
2017-10-24 09:14:24 +00:00
|
|
|
enableParallelBuilding = true;
|
2009-11-18 09:39:59 +00:00
|
|
|
|
2017-10-24 09:14:24 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--enable-lock-dir=/var/lock"
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [ ./xminicom_terminal_paths.patch ];
|
2010-09-03 20:52:32 +00:00
|
|
|
|
2017-10-24 09:14:24 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# Have `configure' assume that the lock directory exists.
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace 'test -d $UUCPLOCK' true
|
2018-09-17 07:05:36 +00:00
|
|
|
'';
|
2017-10-24 09:14:24 +00:00
|
|
|
|
2018-09-17 07:05:36 +00:00
|
|
|
postInstall = ''
|
|
|
|
for f in $out/bin/*minicom ; do
|
|
|
|
wrapProgram $f \
|
|
|
|
--prefix PATH : ${stdenv.lib.makeBinPath [ lrzsz ]}:$out/bin
|
|
|
|
done
|
2017-10-24 09:14:24 +00:00
|
|
|
'';
|
2010-09-03 20:52:32 +00:00
|
|
|
|
2017-10-24 09:14:24 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Modem control and terminal emulation program";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://salsa.debian.org/minicom-team/minicom";
|
2017-10-24 09:14:24 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
longDescription = ''
|
2018-09-17 07:05:36 +00: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 09:14:24 +00:00
|
|
|
download.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2018-07-24 07:25:28 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2009-11-18 09:39:59 +00:00
|
|
|
};
|
|
|
|
}
|