3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/minicom/default.nix

54 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchgit, autoreconfHook, makeWrapper, pkgconfig
, lrzsz, ncurses, libiconv }:
stdenv.mkDerivation rec {
name = "minicom-${version}";
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";
};
2018-07-24 08:25:28 +01:00
buildInputs = [ ncurses ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig ];
2017-10-24 10:14:24 +01:00
enableParallelBuilding = true;
2017-10-24 10:14:24 +01:00
configureFlags = [
"--sysconfdir=/etc"
"--enable-lock-dir=/var/lock"
];
patches = [ ./xminicom_terminal_paths.patch ];
2017-10-24 10:14:24 +01:00
preConfigure = ''
# Have `configure' assume that the lock directory exists.
substituteInPlace configure \
--replace 'test -d $UUCPLOCK' true
'';
2017-10-24 10:14:24 +01:00
postInstall = ''
for f in $out/bin/*minicom ; do
wrapProgram $f \
--prefix PATH : ${stdenv.lib.makeBinPath [ lrzsz ]}:$out/bin
done
2017-10-24 10:14:24 +01:00
'';
2017-10-24 10:14:24 +01:00
meta = with stdenv.lib; {
description = "Modem control and terminal emulation program";
homepage = https://salsa.debian.org/minicom-team/minicom;
2017-10-24 10:14:24 +01:00
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
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;
};
}