2021-10-04 11:53:52 +02:00
|
|
|
{ lib, symlinkJoin, makeWrapper
|
2019-06-10 11:48:52 +02:00
|
|
|
, lilypond, openlilylib-fonts
|
2017-03-06 11:33:31 +01:00
|
|
|
}:
|
|
|
|
|
2021-01-15 14:21:58 +01:00
|
|
|
lib.appendToName "with-fonts" (symlinkJoin {
|
2019-06-10 19:21:05 +02:00
|
|
|
inherit (lilypond) meta name version ;
|
2017-03-06 08:31:53 +01:00
|
|
|
|
2020-03-13 12:40:54 +01:00
|
|
|
paths = [ lilypond ] ++ openlilylib-fonts.all;
|
2017-03-06 08:31:53 +01:00
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2019-06-10 11:48:52 +02:00
|
|
|
|
|
|
|
postBuild = ''
|
2019-06-10 19:21:05 +02:00
|
|
|
for p in $out/bin/*; do
|
2021-10-04 11:53:52 +02:00
|
|
|
wrapProgram "$p" --set LILYPOND_DATADIR "$out/share/lilypond/${lilypond.version}"
|
2019-06-10 19:21:05 +02:00
|
|
|
done
|
2017-03-06 08:31:53 +01:00
|
|
|
'';
|
2018-05-25 11:21:47 +02:00
|
|
|
})
|