1{
2 lib,
3 symlinkJoin,
4 makeWrapper,
5 lilypond,
6 openlilylib-fonts,
7}:
8
9lib.appendToName "with-fonts" (symlinkJoin {
10 inherit (lilypond) meta name version;
11
12 paths = [ lilypond ] ++ openlilylib-fonts.all;
13
14 nativeBuildInputs = [ makeWrapper ];
15
16 postBuild = ''
17 for p in $out/bin/*; do
18 wrapProgram "$p" --set LILYPOND_DATADIR "$out/share/lilypond/${lilypond.version}"
19 done
20 '';
21})