Files
nixpkgs/pkgs/by-name/ex/excalifont/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.1 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
woff2,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "excalifont";
version = "0.18.0";
src = fetchFromGitHub {
owner = "excalidraw";
repo = "excalidraw";
tag = "v${finalAttrs.version}";
hash = "sha256-Nfzh5rNvHP7R418PP44FXD7xNenzmzMHu7RLAdJsE/c=";
};
nativeBuildInputs = [
woff2
];
buildPhase = ''
runHook preBuild
for file in packages/excalidraw/fonts/Excalifont/*.woff2; do
woff2_decompress $file
done
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -D -m 444 packages/excalidraw/fonts/Excalifont/*.ttf -t $out/share/fonts/ttf
install -D -m 444 packages/excalidraw/fonts/Excalifont/*.woff2 -t $out/share/fonts/woff2
runHook postInstall
'';
meta = {
homepage = "https://plus.excalidraw.com/excalifont";
description = "Font based on the original handwritten Virgil font carefully curated to improve legibility while preserving its hand-drawn nature";
platforms = lib.platforms.all;
maintainers = [ ];
license = lib.licenses.ofl;
};
})