diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-06-23 00:41:54 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-06-23 00:46:28 -0300 |
commit | badcbf43f5428a99880e6589983dc2e8fe038037 (patch) | |
tree | 60729c35f3372affe666e7b30b5f3cd2c14565c7 /pkgs/applications/terminal-emulators | |
parent | b873098d2a8249453350d20a8c2afbbc828be07e (diff) |
dterm: move to applications/terminal-emulators
Also, use SRI hash and add a `longDescription`.
Diffstat (limited to 'pkgs/applications/terminal-emulators')
-rw-r--r-- | pkgs/applications/terminal-emulators/dterm/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/terminal-emulators/dterm/default.nix b/pkgs/applications/terminal-emulators/dterm/default.nix new file mode 100644 index 0000000000000..69b1f67d629a9 --- /dev/null +++ b/pkgs/applications/terminal-emulators/dterm/default.nix @@ -0,0 +1,42 @@ +{ 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 = "A simple terminal program"; + 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. + ''; + license = licenses.gpl2Only; + maintainers = with maintainers; [ auchter ]; + platforms = platforms.unix; + }; +} |