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

19 lines
399 B
Nix
Raw Normal View History

{ lib, lndir, symlinkJoin, makeWrapper
, lilypond, openlilylib-fonts
}:
2021-01-15 14:21:58 +01:00
lib.appendToName "with-fonts" (symlinkJoin {
inherit (lilypond) meta name version ;
2020-03-13 12:40:54 +01:00
paths = [ lilypond ] ++ openlilylib-fonts.all;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ lndir ];
postBuild = ''
for p in $out/bin/*; do
wrapProgram "$p" --set LILYPOND_DATADIR "$datadir"
done
'';
})