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
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
python3,
|
|
ttfautohint,
|
|
}:
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "eb-garamond";
|
|
version = "0.016";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "georgd";
|
|
repo = "EB-Garamond";
|
|
tag = "v${version}";
|
|
hash = "sha256-ajieKhTeH6yv2qiE2xqnHFoMS65//4ZKiccAlC2PXGQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
(python3.withPackages (p: [ p.fontforge ]))
|
|
ttfautohint
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace-fail "@\$(SFNTTOOL) -w \$< \$@" "@fontforge -lang=ff -c 'Open(\$\$1); Generate(\$\$2)' \$< \$@"
|
|
'';
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
make WEB=build EOT="" all
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 build/*.ttf -t $out/share/fonts/truetype
|
|
install -Dm644 build/*.otf -t $out/share/fonts/opentype
|
|
install -Dm644 build/*.woff -t $out/share/fonts/woff
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.georgduffner.at/ebgaramond/";
|
|
description = "Digitization of the Garamond shown on the Egenolff-Berner specimen";
|
|
maintainers = with maintainers; [
|
|
bengsparks
|
|
relrod
|
|
rycee
|
|
];
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|