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