Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

hterm: init at 0.8.9

Zebreus fb9ca468 cc648ec4

+90
+72
pkgs/by-name/ht/hterm/package.nix
··· 1 + { 2 + stdenv, 3 + lib, 4 + fetchurl, 5 + cairo, 6 + pango, 7 + libpng, 8 + expat, 9 + fontconfig, 10 + gtk2, 11 + xorg, 12 + autoPatchelfHook, 13 + }: 14 + stdenv.mkDerivation (finalAttrs: { 15 + pname = "hterm"; 16 + version = "0.8.9"; 17 + 18 + src = 19 + let 20 + versionWithoutDots = builtins.replaceStrings [ "." ] [ "" ] finalAttrs.version; 21 + in 22 + if stdenv.targetPlatform.is64bit then 23 + fetchurl { 24 + url = "https://www.der-hammer.info/terminal/hterm${versionWithoutDots}-linux-64.tgz"; 25 + hash = "sha256-DY+X7FaU1UBbNf/Kgy4TzBZiocQ4/TpJW3KLW1iu0M0="; 26 + } 27 + else 28 + fetchurl { 29 + url = "https://www.der-hammer.info/terminal/hterm${versionWithoutDots}-linux-32.tgz"; 30 + hash = "sha256-7wJFCpeXNMX94tk0QVc0T22cbv3ODIswFge5Cs0JhI8="; 31 + }; 32 + sourceRoot = "."; 33 + 34 + nativeBuildInputs = [ autoPatchelfHook ]; 35 + 36 + buildInputs = [ 37 + cairo 38 + pango 39 + libpng 40 + expat 41 + fontconfig.lib 42 + gtk2 43 + xorg.libSM 44 + ]; 45 + 46 + installPhase = '' 47 + runHook preInstall 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 51 + runHook postInstall 52 + ''; 53 + 54 + passthru = { 55 + updateScript = ./update.sh; 56 + }; 57 + 58 + meta = { 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 ]; 65 + platforms = [ 66 + "x86_64-linux" 67 + "i686-linux" 68 + ]; 69 + maintainers = with lib.maintainers; [ zebreus ]; 70 + mainProgram = "hterm"; 71 + }; 72 + })
+18
pkgs/by-name/ht/hterm/update.sh
··· 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p common-updater-scripts curl 3 + # shellcheck shell=bash 4 + 5 + set -eu -o pipefail 6 + 7 + # The first valid version in the changelog should always be the latest version. 8 + version="$(curl https://www.der-hammer.info/terminal/CHANGELOG.txt | grep -m1 -Po '[0-9]+\.[0-9]+\.[0-9]+')" 9 + 10 + function update_hash_for_system() { 11 + local system="$1" 12 + # Reset the version number so the second architecture update doesn't get ignored. 13 + update-source-version hterm 0 "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" --system="$system" 14 + update-source-version hterm "$version" --system="$system" 15 + } 16 + 17 + update_hash_for_system x86_64-linux 18 + update_hash_for_system i686-linux