summary refs log tree commit diff
path: root/pkgs/tools/misc/minicom/default.nix
blob: 8ede3aa918b1aac04f4e93174de9acadf8cfca47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, fetchurl, ncurses }:

stdenv.mkDerivation rec {
  name = "minicom-2.7";

  src = fetchurl {
    url = "http://alioth.debian.org/frs/download.php/file/3977/${name}.tar.gz";
    sha256 = "1x04m4k7c71j5cnhzpjrbz43dd96k4mpkd0l87v5skrgp1isdhws";
  };

  buildInputs = [ncurses];

  configureFlags = [ "--sysconfdir=/etc" "--enable-lock-dir=/var/lock" ];

  preConfigure =
    # Have `configure' assume that the lock directory exists.
    '' sed -i "configure" -e's/test -d \$UUCPLOCK/true/g'
    '';

  meta = {
    description = "Minicom, a modem control and terminal emulation program";
    homepage = http://alioth.debian.org/projects/minicom/;

    longDescription =
      '' Minicom is a menu driven communications program.  It emulates ANSI
         and VT102 terminals.  It has a dialing directory and auto zmodem
         download.
      '';

    platforms = stdenv.lib.platforms.gnu;  # arbitrary choice
  };
}