flakes/overlays/cascadia-code.nix

13 lines
423 B
Nix
Raw Permalink Normal View History

self: super: {
cascadia-code = super.cascadia-code.overrideAttrs(o: {
installPhase = (builtins.replaceStrings ["runHook postInstall"] [""] o.installPhase) + ''
install -Dm644 otf/static/*.otf -t $out/share/fonts/opentype
install -Dm644 ttf/static/*.ttf -t $out/share/fonts/truetype
rm $out/share/fonts/opentype/*NF*
rm $out/share/fonts/truetype/*NF*
runHook postInstall
'';
});
}