Commit 1675da70 authored by pancaek's avatar pancaek
Browse files

paratype-pt-{sans,serif,mono}: use installFonts hook

parent 5f99f468
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  installFonts,
}:

stdenvNoCC.mkDerivation {
@@ -16,13 +17,7 @@ stdenvNoCC.mkDerivation {
    rootDir = "ofl/ptmono";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 *.ttf -t $out/share/fonts/truetype

    runHook postInstall
  '';
  nativeBuildInputs = [ installFonts ];

  meta = {
    homepage = "https://www.paratype.ru/catalog/font/pt/pt-mono";
+2 −7
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  installFonts,
}:

stdenvNoCC.mkDerivation {
@@ -16,13 +17,7 @@ stdenvNoCC.mkDerivation {
    rootDir = "ofl/ptsans";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 *.ttf -t $out/share/fonts/truetype

    runHook postInstall
  '';
  nativeBuildInputs = [ installFonts ];

  meta = {
    homepage = "https://www.paratype.ru/catalog/font/pt/pt-sans";
+2 −7
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  installFonts,
}:

stdenvNoCC.mkDerivation {
@@ -16,13 +17,7 @@ stdenvNoCC.mkDerivation {
    rootDir = "ofl/ptserif";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 *.ttf -t $out/share/fonts/truetype

    runHook postInstall
  '';
  nativeBuildInputs = [ installFonts ];

  meta = {
    homepage = "https://www.paratype.ru/catalog/font/pt/pt-serif";