Commit 45422b8e authored by Marcell Tóth's avatar Marcell Tóth
Browse files

_7-segment-font: init at 3.0-unstable-2025-06-03

parent 2e19be50
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{
  stdenvNoCC,
  fetchurl,
  lib,
}:
stdenvNoCC.mkDerivation {
  pname = "7-segment-font";
  version = "3.0-unstable-2025-06-03";

  src = fetchurl {
    url = "https://torinak.com/font/7segment.ttf";
    hash = "sha256-zIjaEGDLR9ad192GH9pIU6/A3ZGAuR0oF3ZB3Ew3Xbs=";
  };

  dontUnpack = true;

  installPhase = ''
    runHook preInstall

    install -Dm444 "$src" "$out/share/fonts/truetype/7segment.ttf"

    runHook postInstall
  '';

  meta = {
    description = "Font that imitates classic seven-segment LCD and LED displays";
    longDescription = ''
      A font that imitates classic seven-segment LCD and LED displays.
      Beside digits, it contains Latin letters and some symbols constructed from segments,
      with separate dot and colon as used in calculators and digital clocks.
    '';
    homepage = "https://torinak.com/font/7-segment";
    downloadPage = "https://torinak.com/font/7-segment";
    license = lib.licenses.ofl;
    maintainers = with lib.maintainers; [ elfenermarcell ];
    platforms = lib.platforms.all;
  };
}