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

cooper: use installFonts (#496406)

parents 118597aa 14db2a7f
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  installFonts,
}:
stdenvNoCC.mkDerivation {
  pname = "cooper";
@@ -14,14 +15,7 @@ stdenvNoCC.mkDerivation {
    hash = "sha256-4WaRFvAn32IfeCCDszOsmDxFuKnnADOXj/vj8SZB2mU=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/fonts/truetype
    cp fonts/*/*.otf $out/share/fonts/truetype

    runHook postInstall
  '';
  nativeBuildInputs = [ installFonts ];

  meta = {
    homepage = "https://indestructibletype.com/Cooper/index.html";