Unverified Commit 887f370b authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

hubot-sans: use installFonts hook (#505705)

parents 1b0a9b58 683f35b5
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  fetchzip,
  stdenvNoCC,
  installFonts,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
@@ -14,14 +15,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    stripRoot = false;
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 Hubot\ Sans/TTF/*.ttf -t $out/share/fonts/truetype/
    install -Dm644 Hubot\ Sans/OTF/*.otf -t $out/share/fonts/opentype/

    runHook postInstall
  '';
  nativeBuildInputs = [ installFonts ];

  meta = {
    description = "Variable font from GitHub";
@@ -37,7 +31,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
      of a typeface to be incorporated into one single file, and are supported
      by all major browsers.
    '';
    maintainers = [ ];
    maintainers = with lib.maintainers; [ pancaek ];
    platforms = lib.platforms.all;
  };
})