Commit 11698393 authored by pancaek's avatar pancaek
Browse files

atkinson-hyperlegible-{next,mono}: use installFonts hook

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

stdenvNoCC.mkDerivation {
@@ -15,14 +16,13 @@ stdenvNoCC.mkDerivation {
    hash = "sha256-V0zWbNYT3RGO9vjX+GHfO38ywMozcZVJkBZH+8G5sC0=";
  };

  nativeBuildInputs = [ installFonts ];

  dontBuild = true;

  # default installPhase invokes python, but we still want the font hook to run
  installPhase = ''
    runHook preInstall

    install -Dm644 -t $out/share/fonts/opentype fonts/otf/*
    install -Dm644 -t $out/share/fonts/variable fonts/variable/*

    runHook postInstall
  '';

+4 −4
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  installFonts,
}:

stdenvNoCC.mkDerivation {
@@ -17,12 +18,11 @@ stdenvNoCC.mkDerivation {

  dontBuild = true;

  nativeBuildInputs = [ installFonts ];

  # default installPhase invokes python, but we still want the font hook to run
  installPhase = ''
    runHook preInstall

    install -Dm644 -t $out/share/fonts/opentype fonts/otf/*
    install -Dm644 -t $out/share/fonts/variable fonts/variable/*

    runHook postInstall
  '';