nixpkgs/pkgs/misc/lilypond/with-fonts.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
396 B
Nix
Raw Normal View History

{ lib, symlinkJoin, makeWrapper
, lilypond, openlilylib-fonts
}:
2021-01-15 13:21:58 +00:00
lib.appendToName "with-fonts" (symlinkJoin {
inherit (lilypond) meta name version ;
2020-03-13 11:40:54 +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
'';
})