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

material-icons: use installFonts hook (#505707)

parents 60bc5ae3 a5d25d00
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenvNoCC,
  fetchFromGitHub,
  nix-update-script,
  installFonts,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
@@ -19,17 +20,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
  dontConfigure = true;
  dontBuild = true;

  installPhase = ''
    runHook preInstall

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

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

    runHook postInstall
  '';
  nativeBuildInputs = [ installFonts ];

  passthru.updateScript = nix-update-script { };