nixpkgs/pkgs/tools/misc/minicom/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.4 KiB
Nix
Raw Normal View History

2023-09-22 23:36:10 +02:00
{ lib
, stdenv
, fetchFromGitLab
, autoreconfHook
, makeWrapper
, pkg-config
, lrzsz
, ncurses
, libiconv
, IOKit
}:
stdenv.mkDerivation rec {
pname = "minicom";
2023-09-22 23:36:10 +02:00
version = "2.9";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "minicom-team";
repo = pname;
rev = version;
2023-09-22 23:36:10 +02:00
sha256 = "sha256-+fKvHrApDXm94LItXv+xSDIE5zD7rTY5IeNSuzQglpg=";
};
2023-09-22 23:36:10 +02:00
buildInputs = [ ncurses ] ++ lib.optionals stdenv.isDarwin [ libiconv IOKit ];
2021-01-17 04:51:22 +01:00
nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config ];
2017-10-24 11:14:24 +02:00
enableParallelBuilding = true;
2017-10-24 11:14:24 +02:00
configureFlags = [
"--sysconfdir=/etc"
"--enable-lock-dir=/var/lock"
];
patches = [ ./xminicom_terminal_paths.patch ];
2017-10-24 11:14:24 +02:00
preConfigure = ''
# Have `configure' assume that the lock directory exists.
substituteInPlace configure \
--replace 'test -d $UUCPLOCK' true
'';
2017-10-24 11:14:24 +02:00
postInstall = ''
for f in $out/bin/*minicom ; do
wrapProgram $f \
2021-01-15 10:19:50 +01:00
--prefix PATH : ${lib.makeBinPath [ lrzsz ]}:$out/bin
done
2017-10-24 11:14:24 +02:00
'';
meta = with lib; {
2017-10-24 11:14:24 +02:00
description = "Modem control and terminal emulation program";
homepage = "https://salsa.debian.org/minicom-team/minicom";
2017-10-24 11:14:24 +02: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 11:14:24 +02:00
download.
'';
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.unix;
};
}