2021-10-11 16:52:03 +00:00
|
|
|
{ lib, symlinkJoin, makeWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
, lilypond, openlilylib-fonts
|
|
|
|
}:
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
lib.appendToName "with-fonts" (symlinkJoin {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (lilypond) meta name version ;
|
|
|
|
|
|
|
|
paths = [ lilypond ] ++ openlilylib-fonts.all;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
for p in $out/bin/*; do
|
2021-10-11 16:52:03 +00:00
|
|
|
wrapProgram "$p" --set LILYPOND_DATADIR "$out/share/lilypond/${lilypond.version}"
|
2020-04-24 23:36:52 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
})
|