File tree Expand file tree Collapse file tree 2 files changed +34
-7
lines changed
pkgs/by-name/eb/eb-garamond Expand file tree Collapse file tree 2 files changed +34
-7
lines changed Original file line number Diff line number Diff line change 27922792 githubId = 29384538;
27932793 keys = [ { fingerprint = "D35E C9CE E631 638F F1D8 B401 6F0E 410D C3EE D02"; } ];
27942794 };
2795+ bengsparks = {
2796+ 2797+ github = "bengsparks";
2798+ githubId = 4313548;
2799+ name = "Ben Sparks";
2800+ };
27952801 benhiemer = {
27962802 name = "Benedikt Hiemer";
27972803
Original file line number Diff line number Diff line change 11{
22 lib ,
33 stdenvNoCC ,
4- fetchzip ,
4+ fetchFromGitHub ,
5+ python3 ,
6+ ttfautohint ,
57} :
6-
78stdenvNoCC . mkDerivation rec {
89 pname = "eb-garamond" ;
910 version = "0.016" ;
1011
11- src = fetchzip {
12- url = "https://bitbucket.org/georgd/eb-garamond/downloads/EBGaramond-${ version } .zip" ;
13- hash = "sha256-P2VCLcqcMBBoTDJyRLP9vlHI+jE0EqPjPziN2MJbgEg=" ;
12+ src = fetchFromGitHub {
13+ owner = "georgd" ;
14+ repo = "EB-Garamond" ;
15+ tag = "v${ version } " ;
16+ hash = "sha256-ajieKhTeH6yv2qiE2xqnHFoMS65//4ZKiccAlC2PXGQ=" ;
1417 } ;
1518
19+ nativeBuildInputs = [
20+ ( python3 . withPackages ( p : [ p . fontforge ] ) )
21+ ttfautohint
22+ ] ;
23+
24+ postPatch = ''
25+ substituteInPlace Makefile \
26+ --replace-fail "@\$(SFNTTOOL) -w \$< \$@" "@fontforge -lang=ff -c 'Open(\$\$1); Generate(\$\$2)' \$< \$@"
27+ '' ;
28+
29+ buildPhase = ''
30+ runHook preBuild
31+ make WEB=build EOT="" all
32+ runHook postBuild
33+ '' ;
34+
1635 installPhase = ''
1736 runHook preInstall
1837
19- install -Dm644 otf/*.otf -t $out/share/fonts/opentype
20- install -Dm644 Changes README.markdown README.xelualatex -t $out/share/doc/${ pname } -${ version }
38+ install -Dm644 build/*.ttf -t $out/share/fonts/truetype
39+ install -Dm644 build/*.otf -t $out/share/fonts/opentype
40+ install -Dm644 build/*.woff -t $out/share/fonts/woff
2141
2242 runHook postInstall
2343 '' ;
@@ -26,6 +46,7 @@ stdenvNoCC.mkDerivation rec {
2646 homepage = "http://www.georgduffner.at/ebgaramond/" ;
2747 description = "Digitization of the Garamond shown on the Egenolff-Berner specimen" ;
2848 maintainers = with maintainers ; [
49+ bengsparks
2950 relrod
3051 rycee
3152 ] ;
You can’t perform that action at this time.
0 commit comments