1 { lib, stdenv, fetchgit, autoreconfHook, makeWrapper, pkg-config
2 , lrzsz, ncurses, libiconv }:
8 # The repository isn't tagged properly, so we need to use commit refs
10 url = "https://salsa.debian.org/minicom-team/minicom.git";
11 rev = "6ea8033b6864aa35d14fb8b87e104e4f783635ce";
12 sha256 = "0j95727xni4r122dalp09963gvc1nqa18l1d4wzz8746kw5s2rrb";
15 buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin libiconv;
17 nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config ];
19 enableParallelBuilding = true;
23 "--enable-lock-dir=/var/lock"
26 patches = [ ./xminicom_terminal_paths.patch ];
29 # Have `configure' assume that the lock directory exists.
30 substituteInPlace configure \
31 --replace 'test -d $UUCPLOCK' true
35 for f in $out/bin/*minicom ; do
37 --prefix PATH : ${lib.makeBinPath [ lrzsz ]}:$out/bin
42 description = "Modem control and terminal emulation program";
43 homepage = "https://salsa.debian.org/minicom-team/minicom";
44 license = licenses.gpl2;
46 Minicom is a menu driven communications program. It emulates ANSI
47 and VT102 terminals. It has a dialing directory and auto zmodem
50 maintainers = with maintainers; [ peterhoeg ];
51 platforms = platforms.linux ++ platforms.darwin;