Unverified Commit 1b60052b authored by Acid Bong's avatar Acid Bong
Browse files

twemoji-color-font: improve phases

- `dontBuild` is redundant, there's no Makefile in the source
- run pre- and postInstall hooks
parent 80edfe6d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -15,11 +15,11 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-Xy6Lkm340ldm9ssQWn/eRFIJ5kyhYaXPNy/Y/9vUt40=";
  };

  dontBuild = true;

  installPhase = ''
    runHook preInstall
    install -Dm755 TwitterColorEmoji-SVGinOT.ttf $out/share/fonts/truetype/TwitterColorEmoji-SVGinOT.ttf
    install -Dm644 fontconfig/46-twemoji-color.conf $out/etc/fonts/conf.d/46-twemoji-color.conf
    runHook postInstall
  '';

  meta = with lib; {