2017-10-24 09:14:24 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig
|
2018-07-24 07:25:28 +00:00
|
|
|
, ncurses, libiconv }:
|
2009-11-18 09:39:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-24 09:14:24 +00:00
|
|
|
name = "minicom-2.7.1";
|
2010-09-03 20:52:32 +00:00
|
|
|
|
2009-11-18 09:39:59 +00:00
|
|
|
src = fetchurl {
|
2017-10-24 09:14:24 +00:00
|
|
|
url = "https://alioth.debian.org/frs/download.php/latestfile/3/${name}.tar.gz";
|
|
|
|
sha256 = "1wa1l36fa4npd21xa9nz60yrqwkk5cq713fa3p5v0zk7g9mq6bsk";
|
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
|
|
|
|
2017-10-24 09:14:24 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook 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
|
|
|
|
|
|
|
|
substituteInPlace src/rwconf.c \
|
|
|
|
--replace /usr/bin/ascii-xfr $out/bin/ascii-xfr
|
|
|
|
'';
|
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";
|
|
|
|
homepage = https://alioth.debian.org/projects/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 ];
|
2018-07-24 07:25:28 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2009-11-18 09:39:59 +00:00
|
|
|
};
|
|
|
|
}
|