twemoji-color-font: improve phases

- `dontBuild` is redundant, there's no Makefile in the source
- run pre- and postInstall hooks
This commit is contained in:
Acid Bong
2025-10-23 12:12:44 +03:00
parent 80edfe6d33
commit 1b60052bae
@@ -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; {