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

2021-01-17 03:51:22 +00:00
{ lib, stdenv, fetchgit, autoreconfHook, makeWrapper, pkg-config
, lrzsz, ncurses, libiconv }:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
pname = "minicom";
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";
};
2021-01-15 09:19:50 +00:00
buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin libiconv;
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config ];
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 \
2021-01-15 09:19:50 +00:00
--prefix PATH : ${lib.makeBinPath [ lrzsz ]}:$out/bin
done
2017-10-24 10:14:24 +01:00
'';
meta = with lib; {
2017-10-24 10:14:24 +01:00
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;
};
}