2022-06-23 05:41:54 +02:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchurl
|
|
|
|
|
, readline
|
|
|
|
|
}:
|
2022-06-20 17:21:03 +02:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "dterm";
|
|
|
|
|
version = "0.5";
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "http://www.knossos.net.nz/downloads/dterm-${version}.tgz";
|
2022-06-23 05:41:54 +02:00
|
|
|
|
hash = "sha256-lFM7558e7JZeWYhtXwCjXLZ1xdsdiUGfJTu3LxQKvds=";
|
2022-06-20 17:21:03 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
buildInputs = [ readline ];
|
2022-06-23 05:41:54 +02:00
|
|
|
|
|
2022-06-20 17:21:03 +02:00
|
|
|
|
postPatch = ''
|
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
|
--replace 'gcc' '${stdenv.cc.targetPrefix}cc'
|
|
|
|
|
'';
|
2022-06-23 05:41:54 +02:00
|
|
|
|
|
2022-06-20 17:21:03 +02:00
|
|
|
|
preInstall = "mkdir -p $out/bin";
|
2022-06-23 05:41:54 +02:00
|
|
|
|
|
2022-06-20 17:21:03 +02:00
|
|
|
|
installFlags = [ "BIN=$(out)/bin/" ];
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
homepage = "http://www.knossos.net.nz/resources/free-software/dterm/";
|
|
|
|
|
description = "A simple terminal program";
|
2022-06-23 05:41:54 +02:00
|
|
|
|
longDescription = ''
|
|
|
|
|
dterm is a simple terminal emulator, which doesn’t actually emulate any
|
|
|
|
|
particular terminal. Mainly, it is designed for use with xterm and
|
|
|
|
|
friends, which already do a perfectly good emulation, and therefore don’t
|
|
|
|
|
need any special help; dterm simply provides a means by which keystrokes
|
|
|
|
|
are forwarded to the serial line, and data forwarded from the serial line
|
|
|
|
|
appears on the terminal.
|
|
|
|
|
'';
|
2022-06-20 17:21:03 +02:00
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
|
maintainers = with maintainers; [ auchter ];
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
};
|
|
|
|
|
}
|