2019-06-10 10:48:52 +01:00
|
|
|
{ stdenv, lndir, symlinkJoin, makeWrapper
|
|
|
|
, lilypond, openlilylib-fonts
|
2017-03-06 10:33:31 +00:00
|
|
|
}:
|
|
|
|
|
2019-06-10 10:48:52 +01:00
|
|
|
stdenv.lib.appendToName "with-fonts" (symlinkJoin {
|
2019-06-10 18:21:05 +01:00
|
|
|
inherit (lilypond) meta name version ;
|
2017-03-06 07:31:53 +00:00
|
|
|
|
2020-03-13 11:40:54 +00:00
|
|
|
paths = [ lilypond ] ++ openlilylib-fonts.all;
|
2017-03-06 07:31:53 +00:00
|
|
|
|
2019-06-10 10:48:52 +01:00
|
|
|
buildInputs = [ makeWrapper lndir ];
|
|
|
|
|
|
|
|
postBuild = ''
|
2019-06-10 18:21:05 +01:00
|
|
|
for p in $out/bin/*; do
|
|
|
|
wrapProgram "$p" --set LILYPOND_DATADIR "$datadir"
|
|
|
|
done
|
2017-03-06 07:31:53 +00:00
|
|
|
'';
|
2018-05-25 10:21:47 +01:00
|
|
|
})
|