Unverified Commit 7fc6bbc5 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

xkcd-font: use installFonts hook (#505701)

parents 68d8aa3d 75ed0742
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenvNoCC,
  fetchFromGitHub,
  installFonts,
}:

stdenvNoCC.mkDerivation {
@@ -15,20 +16,20 @@ stdenvNoCC.mkDerivation {
    hash = "sha256-1DgSx2L+OpXuPVSXbbl/hcZUyBK9ikPyGWuk6wNzlwc=";
  };

  installPhase = ''
    runHook preInstall
  preInstall = "rm xkcd/build/xkcd.otf";

    install -Dm444 -t $out/share/fonts/opentype/ xkcd/build/xkcd.otf
    install -Dm444 -t $out/share/fonts/truetype/ xkcd-script/font/xkcd-script.ttf
  nativeBuildInputs = [ installFonts ];

    runHook postInstall
  '';
  outputs = [
    "out"
    "webfont"
  ];

  meta = {
    description = "Xkcd font";
    homepage = "https://github.com/ipython/xkcd-font";
    license = lib.licenses.cc-by-nc-30;
    platforms = lib.platforms.all;
    maintainers = [ ];
    maintainers = with lib.maintainers; [ pancaek ];
  };
}