depot/third_party/nixpkgs/pkgs/applications/terminal-emulators/dterm/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

43 lines
1.2 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib
, stdenv
, fetchurl
, readline
}:
stdenv.mkDerivation rec {
pname = "dterm";
version = "0.5";
src = fetchurl {
url = "http://www.knossos.net.nz/downloads/dterm-${version}.tgz";
hash = "sha256-lFM7558e7JZeWYhtXwCjXLZ1xdsdiUGfJTu3LxQKvds=";
};
buildInputs = [ readline ];
postPatch = ''
substituteInPlace Makefile \
--replace 'gcc' '${stdenv.cc.targetPrefix}cc'
'';
preInstall = "mkdir -p $out/bin";
installFlags = [ "BIN=$(out)/bin/" ];
meta = with lib; {
homepage = "http://www.knossos.net.nz/resources/free-software/dterm/";
description = "Simple terminal program";
longDescription = ''
dterm is a simple terminal emulator, which doesnt actually emulate any
particular terminal. Mainly, it is designed for use with xterm and
friends, which already do a perfectly good emulation, and therefore dont
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.
'';
license = licenses.gpl2Only;
maintainers = with maintainers; [ auchter ];
platforms = platforms.unix;
mainProgram = "dterm";
};
}