nixpkgs/pkgs/misc/lilypond/with-fonts.nix
Eric Bailey 900be27403 openlilylib-fonts: rework
- Install to lilypond fonts dir
- Use lilypond-unstable by default
2019-06-10 12:30:36 -05:00

19 lines
389 B
Nix

{ stdenv, lndir, symlinkJoin, makeWrapper
, lilypond, openlilylib-fonts
, fonts ? openlilylib-fonts.all
}:
stdenv.lib.appendToName "with-fonts" (symlinkJoin {
inherit (lilypond) meta name version ;
paths = [ lilypond ];
buildInputs = [ makeWrapper lndir ];
postBuild = ''
for p in $out/bin/*; do
wrapProgram "$p" --set LILYPOND_DATADIR "$datadir"
done
'';
})