Commit 14db2a7f authored by Sigmanificient's avatar Sigmanificient
Browse files

cooper: use installFonts

parent bfb46acc
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";