From 263ff104e5f185774436b577f1b12b29d59666f5 Mon Sep 17 00:00:00 2001 From: Michael Auchter Date: Mon, 20 Jun 2022 15:21:03 +0000 Subject: [PATCH] dterm: init at 0.5 Add dterm, a simple terminal emulator. --- pkgs/tools/misc/dterm/default.nix | 27 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/tools/misc/dterm/default.nix diff --git a/pkgs/tools/misc/dterm/default.nix b/pkgs/tools/misc/dterm/default.nix new file mode 100644 index 000000000000..48665751aeb3 --- /dev/null +++ b/pkgs/tools/misc/dterm/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchurl, readline }: + +stdenv.mkDerivation rec { + pname = "dterm"; + version = "0.5"; + + src = fetchurl { + url = "http://www.knossos.net.nz/downloads/dterm-${version}.tgz"; + sha256 = "94533be79f1eec965e59886d5f00a35cb675c5db1d89419f253bb72f140abddb"; + }; + + 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"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ auchter ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4574cbb72eac..47dbc24c3727 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1145,6 +1145,8 @@ with pkgs; cope = callPackage ../tools/misc/cope { }; + dterm = callPackage ../tools/misc/dterm { }; + ejson2env = callPackage ../tools/admin/ejson2env { }; davinci-resolve = callPackage ../applications/video/davinci-resolve { };