1 { lib, stdenv, fetchFromGitHub, lilypond }:
5 olpFont = { fontName, rev, sha256, version ? rev, ... }:
8 pname = "openlilypond-font-${fontName}";
10 src = fetchFromGitHub {
12 owner = "OpenLilyPondFonts";
17 local fontsdir="$out/share/lilypond/${lilypond.version}/fonts"
19 install -m755 -d "$fontsdir/otf"
23 for font in {otf,supplementary-fonts,supplementary-files}/**/*.{o,t}tf; do
25 install -Dt "$fontsdir/otf" -m644 "$font"
28 install -m755 -d "$fontsdir/svg"
29 for font in {svg,woff}/**.{svg,woff}; do
30 install -Dt "$fontsdir/svg" -m644 "$font"
35 inherit (lilypond.meta) homepage platforms;
36 description = "${fontName} font for LilyPond";
37 license = licenses.ofl;
38 maintainers = with maintainers; [ yurrriq ];
46 fontName = "beethoven";
48 sha256 = "17wdklg5shmqwnb7b81qavfg52v32wx5yf15c6al0hbvv1nqqj2i";
53 sha256 = "1p27w1c3bzxlnm6rzq8n7dbfjwbxqjy4r0fhkmk9jbm8awmzw214";
58 sha256 = "1zxb3m8glh8iwj8mzcgyaxhlq0bji0rwniw702m70h9kpifiim1j";
61 fontName = "gonville";
63 sha256 = "15khy9677crgd6bpajn7l1drysgxy49wiym3b248khgpavidwyy9";
65 gutenberg1939 = olpFont {
66 fontName = "gutenberg1939";
68 sha256 = "1lkhivmrx92z37zfrb5mkhzhwggyaga9cm0wl89r0n2f2kayyc7q";
73 sha256 = "1jmbhb2jm887sdc498l2jilpivq1d8lmmgdb8lp59lv8d9fx105z";
76 fontName = "improviso";
78 sha256 = "1clin9c74gjhhira12mwxynxn4b1ixij5bg04mvk828lbr740mfm";
80 lilyboulez = olpFont {
81 fontName = "lilyboulez";
83 sha256 = "0mq92x0rbgfb6s7ipgg2zcxika2si30w3ay89rp7m6vwca01649y";
86 fontName = "lilyjazz";
88 sha256 = "1z7px7k2sn7snnj7yfjv0p9axwbn452vn9ww9icmb1249b0d1qry";
90 lv-goldenage = olpFont {
91 fontName = "lv-goldenage";
93 sha256 = "03nbd1vmlaj7wkhsnl2lq09nafv7zj1k518zs966vclzah94qghp";
96 fontName = "paganini";
98 sha256 = "0gw9wr4hfn205j40rpgnfddhzhn9x4pwfinamj5b7607880nvx29";
101 fontName = "profondo";
103 sha256 = "0armwbg9y0l935949b7klngws6fq42fi944lws61qvjl61780br8";
108 sha256 = "1w2x3pd1d1z4x0107dpq95v7m547cj4nkkzxgqpmzfqa0074idqd";
110 scorlatti = olpFont {
111 fontName = "scorlatti";
113 sha256 = "07jam5hwdy6bydrm98cdla6p6rl8lmy8zzsfq46i55l64l3w956h";
115 sebastiano = olpFont {
116 fontName = "sebastiano";
118 sha256 = "09i8p3p4z6vz69j187cpxvikkgc4pk6gxippahy0k7i7bh0d4qaj";