core/pkgs/by-name/li/lilypond/with-fonts.nix
2024-05-13 22:24:10 +01:00

16 lines
394 B
Nix

{ lib, symlinkJoin, makeWrapper, lilypond, openlilylib-fonts }:
lib.appendToName "with-fonts" (symlinkJoin {
inherit (lilypond) meta name version;
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
'';
})