Unverified Commit 94448ab6 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

hanken-grotesk: init at 0-unstable-2024-01-30 (#397215)

parents 22d90772 a6290d3e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3604,6 +3604,13 @@
    github = "brianmcgillion";
    githubId = 1044263;
  };
  bricked = {
    name = "bricked";
    email = "hello@bricked.dev";
    github = "brckd";
    githubId = 92804487;
    keys = [ { fingerprint = "58A2 81E6 2FBD 6E4E 664C  B603 7B4D 2A02 BB0E C28C"; } ];
  };
  britter = {
    name = "Benedikt Ritter";
    email = "beneritter@gmail.com";
+36 −0
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
}:

stdenvNoCC.mkDerivation {
  pname = "hanken-grotesk";
  version = "0-unstable-2024-01-30";

  src = fetchFromGitHub {
    owner = "marcologous";
    repo = "hanken-grotesk";
    rev = "1ab416e82130b2d3ddb7710abf7ceabf07156a13";
    hash = "sha256-CgxqC+4QrjdsB7VdAMneP8ND9AsWPVI8d8UOn4kytxs=";
  };

  installPhase = ''
    runHook preInstall

    mkdir --parents $out/share/fonts
    cp --recursive fonts/ttf $out/share/fonts/truetype
    cp --recursive fonts/variable $out/share/fonts/variable

    runHook postInstall
  '';

  meta = {
    description = "Hanken Grotesk typeface";
    longDescription = "Hanken Grotesk is a sans serif typeface inspired by the classic grotesques.";
    homepage = "https://github.com/marcologous/hanken-grotesk";
    license = lib.licenses.ofl;
    platforms = lib.platforms.all;
    maintainers = with lib.maintainers; [ bricked ];
  };
}