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

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

55 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitLab, autoreconfHook, makeWrapper, pkg-config
, lrzsz, ncurses, libiconv }:
stdenv.mkDerivation rec {
pname = "minicom";
version = "2.8";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "minicom-team";
repo = pname;
rev = version;
sha256 = "165zhi88swvkhl3v17223r0f27hb3y0qzrgl51jkk0my2m4xscgg";
};
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 09:14:24 +00:00
enableParallelBuilding = true;
2017-10-24 09:14:24 +00:00
configureFlags = [
"--sysconfdir=/etc"
"--enable-lock-dir=/var/lock"
];
patches = [ ./xminicom_terminal_paths.patch ];
2017-10-24 09:14:24 +00:00
preConfigure = ''
# Have `configure' assume that the lock directory exists.
substituteInPlace configure \
--replace 'test -d $UUCPLOCK' true
'';
2017-10-24 09:14:24 +00: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 09:14:24 +00:00
'';
meta = with lib; {
2017-10-24 09:14:24 +00:00
description = "Modem control and terminal emulation program";
homepage = "https://salsa.debian.org/minicom-team/minicom";
2017-10-24 09:14:24 +00: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 09:14:24 +00:00
download.
'';
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.unix;
};
}