14 stdenv.mkDerivation (finalAttrs: {
20 versionWithoutDots = builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version;
22 if stdenv.targetPlatform.is64bit then
24 url = "https://www.der-hammer.info/terminal/hterm${versionWithoutDots}-linux-64.tgz";
25 hash = "sha256-DY+X7FaU1UBbNf/Kgy4TzBZiocQ4/TpJW3KLW1iu0M0=";
29 url = "https://www.der-hammer.info/terminal/hterm${versionWithoutDots}-linux-32.tgz";
30 hash = "sha256-7wJFCpeXNMX94tk0QVc0T22cbv3ODIswFge5Cs0JhI8=";
34 nativeBuildInputs = [ autoPatchelfHook ];
48 install -m755 -D hterm $out/bin/hterm
49 install -m644 -D desktop/hterm.png $out/share/pixmaps/hterm.png
50 install -m644 -D desktop/hterm.desktop $out/share/applications/hterm.desktop
55 updateScript = ./update.sh;
59 homepage = "https://www.der-hammer.info/pages/terminal.html";
60 changelog = "https://www.der-hammer.info/terminal/CHANGELOG.txt";
61 description = "A terminal program for serial communication";
62 # See https://www.der-hammer.info/terminal/LICENSE.txt
63 license = lib.licenses.unfree;
64 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
69 maintainers = with lib.maintainers; [ zebreus ];
70 mainProgram = "hterm";