stdenv: fix documentation for stripAllFlags and stripDebugFlags (#352127)
[NixPkgs.git] / pkgs / misc / lilypond / fonts.nix
blob150d7ee9ea69c23fe273634be8bf55c65bd452de
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   lilypond,
6 }:
8 let
10   olpFont =
11     {
12       fontName,
13       rev,
14       sha256,
15       version ? rev,
16       ...
17     }:
18     stdenv.mkDerivation {
19       inherit version;
20       pname = "openlilypond-font-${fontName}";
22       src = fetchFromGitHub {
23         inherit rev sha256;
24         owner = "OpenLilyPondFonts";
25         repo = fontName;
26       };
28       installPhase = ''
29         local fontsdir="$out/share/lilypond/${lilypond.version}/fonts"
31         install -m755 -d "$fontsdir/otf"
33         shopt -s globstar
35         for font in {otf,supplementary-fonts,supplementary-files}/**/*.{o,t}tf; do
36           echo $font
37           install -Dt "$fontsdir/otf" -m644 "$font"
38         done
40         install -m755 -d "$fontsdir/svg"
41         for font in {svg,woff}/**.{svg,woff}; do
42           install -Dt "$fontsdir/svg" -m644 "$font"
43         done
44       '';
46       meta = with lib; {
47         inherit (lilypond.meta) homepage platforms;
48         description = "${fontName} font for LilyPond";
49         license = licenses.ofl;
50         maintainers = with maintainers; [ yurrriq ];
51       };
52     };
56 rec {
57   beethoven = olpFont {
58     fontName = "beethoven";
59     rev = "669f400";
60     sha256 = "17wdklg5shmqwnb7b81qavfg52v32wx5yf15c6al0hbvv1nqqj2i";
61   };
62   bravura = olpFont {
63     fontName = "bravura";
64     rev = "53c7744";
65     sha256 = "1p27w1c3bzxlnm6rzq8n7dbfjwbxqjy4r0fhkmk9jbm8awmzw214";
66   };
67   cadence = olpFont {
68     fontName = "cadence";
69     rev = "1cc0fb7";
70     sha256 = "1zxb3m8glh8iwj8mzcgyaxhlq0bji0rwniw702m70h9kpifiim1j";
71   };
72   gonville = olpFont {
73     fontName = "gonville";
74     rev = "a638bc9";
75     sha256 = "15khy9677crgd6bpajn7l1drysgxy49wiym3b248khgpavidwyy9";
76   };
77   gutenberg1939 = olpFont {
78     fontName = "gutenberg1939";
79     rev = "2316a35";
80     sha256 = "1lkhivmrx92z37zfrb5mkhzhwggyaga9cm0wl89r0n2f2kayyc7q";
81   };
82   haydn = olpFont {
83     fontName = "haydn";
84     rev = "9e7de8b";
85     sha256 = "1jmbhb2jm887sdc498l2jilpivq1d8lmmgdb8lp59lv8d9fx105z";
86   };
87   improviso = olpFont {
88     fontName = "improviso";
89     rev = "0753f5a";
90     sha256 = "1clin9c74gjhhira12mwxynxn4b1ixij5bg04mvk828lbr740mfm";
91   };
92   lilyboulez = olpFont {
93     fontName = "lilyboulez";
94     rev = "e8455fc";
95     sha256 = "0mq92x0rbgfb6s7ipgg2zcxika2si30w3ay89rp7m6vwca01649y";
96   };
97   lilyjazz = olpFont {
98     fontName = "lilyjazz";
99     rev = "8fa7d554";
100     sha256 = "1z7px7k2sn7snnj7yfjv0p9axwbn452vn9ww9icmb1249b0d1qry";
101   };
102   lv-goldenage = olpFont {
103     fontName = "lv-goldenage";
104     rev = "8a92fd3";
105     sha256 = "03nbd1vmlaj7wkhsnl2lq09nafv7zj1k518zs966vclzah94qghp";
106   };
107   paganini = olpFont {
108     fontName = "paganini";
109     rev = "8e4e55a";
110     sha256 = "0gw9wr4hfn205j40rpgnfddhzhn9x4pwfinamj5b7607880nvx29";
111   };
112   profondo = olpFont {
113     fontName = "profondo";
114     rev = "8cfb668";
115     sha256 = "0armwbg9y0l935949b7klngws6fq42fi944lws61qvjl61780br8";
116   };
117   ross = olpFont {
118     fontName = "ross";
119     rev = "aa8127f";
120     sha256 = "1w2x3pd1d1z4x0107dpq95v7m547cj4nkkzxgqpmzfqa0074idqd";
121   };
122   scorlatti = olpFont {
123     fontName = "scorlatti";
124     rev = "1db87da";
125     sha256 = "07jam5hwdy6bydrm98cdla6p6rl8lmy8zzsfq46i55l64l3w956h";
126   };
127   sebastiano = olpFont {
128     fontName = "sebastiano";
129     rev = "44bf262";
130     sha256 = "09i8p3p4z6vz69j187cpxvikkgc4pk6gxippahy0k7i7bh0d4qaj";
131   };
133   all = [
134     beethoven
135     bravura
136     cadence
137     gonville
138     gutenberg1939
139     haydn
140     improviso
141     lilyboulez
142     lilyjazz
143     lv-goldenage
144     paganini
145     profondo
146     ross
147     scorlatti
148     sebastiano
149   ];