Unverified Commit 587c85e1 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

atkinson-hyperlegible-next: init at 2.001-unstable-2025-02-21,...

atkinson-hyperlegible-next: init at 2.001-unstable-2025-02-21, atkinson-hyperlegible-mono: init at 2.001-unstable-2024-11-20 (#384429)
parents 57f9b481 708f236f
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
}:

stdenvNoCC.mkDerivation {
  pname = "atkinson-hyperlegible-mono";
  version = "2.001-unstable-2024-11-20";

  src = fetchFromGitHub {
    owner = "googlefonts";
    repo = "atkinson-hyperlegible-next-mono";
    rev = "154d50362016cc3e873eb21d242cd0772384c8f9";
    hash = "sha256-V0zWbNYT3RGO9vjX+GHfO38ywMozcZVJkBZH+8G5sC0=";
  };

  dontBuild = true;

  installPhase = ''
    runHook preInstall

    install -Dm644 -t $out/share/fonts/opentype fonts/otf/*
    install -Dm644 -t $out/share/fonts/variable fonts/variable/*

    runHook postInstall
  '';

  meta = {
    description = "New (2024) monospace sibling family to Atkinson Hyperlegible Next";
    homepage = "https://www.brailleinstitute.org/freefont/";
    license = lib.licenses.ofl;
    maintainers = with lib.maintainers; [ pancaek ];
    platforms = lib.platforms.all;
  };
}
+36 −0
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
}:

stdenvNoCC.mkDerivation {
  pname = "atkinson-hyperlegible-next";
  version = "2.001-unstable-2025-02-21";

  src = fetchFromGitHub {
    owner = "googlefonts";
    repo = "atkinson-hyperlegible-next";
    rev = "7925f50f649b3813257faf2f4c0b381011f434f1";
    hash = "sha256-LhwfYI5Z6BhO7OaY/RwXT7r3WYiUY9AO2HL3MmhPpQY=";
  };

  dontBuild = true;

  installPhase = ''
    runHook preInstall

    install -Dm644 -t $out/share/fonts/opentype fonts/otf/*
    install -Dm644 -t $out/share/fonts/variable fonts/variable/*

    runHook postInstall
  '';

  meta = {
    description = "New (2024) second version of the Atkinson Hyperlegible fonts";
    homepage = "https://www.brailleinstitute.org/freefont/";
    license = lib.licenses.ofl;
    maintainers = with lib.maintainers; [ pancaek ];
    platforms = lib.platforms.all;
  };
}