1{
2 lib,
3 stdenv,
4 fetchurl,
5 readline,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "dterm";
10 version = "0.5";
11
12 src = fetchurl {
13 url = "http://www.knossos.net.nz/downloads/dterm-${version}.tgz";
14 hash = "sha256-lFM7558e7JZeWYhtXwCjXLZ1xdsdiUGfJTu3LxQKvds=";
15 };
16
17 buildInputs = [ readline ];
18
19 postPatch = ''
20 substituteInPlace Makefile \
21 --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
22 '';
23
24 preInstall = "mkdir -p $out/bin";
25
26 installFlags = [ "BIN=$(out)/bin/" ];
27
28 meta = with lib; {
29 homepage = "http://www.knossos.net.nz/resources/free-software/dterm/";
30 description = "Simple terminal program";
31 longDescription = ''
32 dterm is a simple terminal emulator, which doesn’t actually emulate any
33 particular terminal. Mainly, it is designed for use with xterm and
34 friends, which already do a perfectly good emulation, and therefore don’t
35 need any special help; dterm simply provides a means by which keystrokes
36 are forwarded to the serial line, and data forwarded from the serial line
37 appears on the terminal.
38 '';
39 license = licenses.gpl2Only;
40 maintainers = with maintainers; [ auchter ];
41 platforms = platforms.unix;
42 mainProgram = "dterm";
43 };
44}