core/pkgs/by-name/li/lilypond/with-fonts.nix

22 lines
405 B
Nix
Raw Normal View History

2024-06-30 08:16:52 +00:00
{
lib,
symlinkJoin,
makeWrapper,
lilypond,
openlilylib-fonts,
2024-05-02 00:46:19 +00:00
}:
lib.appendToName "with-fonts" (symlinkJoin {
2024-06-30 08:16:52 +00:00
inherit (lilypond) meta name version;
2024-05-02 00:46:19 +00:00
paths = [ lilypond ] ++ openlilylib-fonts.all;
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
for p in $out/bin/*; do
wrapProgram "$p" --set LILYPOND_DATADIR "$out/share/lilypond/${lilypond.version}"
done
'';
})