Unverified Commit ae05ea62 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

cooper-hewitt: use installFonts (#515599)

parents 3d32911b fe78fd00
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchzip,
  installFonts,
}:

stdenvNoCC.mkDerivation {
@@ -13,20 +14,13 @@ stdenvNoCC.mkDerivation {
    hash = "sha256-bTlEXQeYNNspvnNdvQhJn6CNBrcSKYWuNWF/N6+3Vb0=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/fonts/opentype
    mv *.otf $out/share/fonts/opentype

    runHook postInstall
  '';
  nativeBuildInputs = [ installFonts ];

  meta = {
    homepage = "https://www.cooperhewitt.org/open-source-at-cooper-hewitt/cooper-hewitt-the-typeface-by-chester-jenkins/";
    description = "Contemporary sans serif, with characters composed of modified-geometric curves and arches";
    license = lib.licenses.ofl;
    platforms = lib.platforms.all;
    maintainers = [ ];
    maintainers = with lib.maintainers; [ pancaek ];
  };
}