nixpkgs/pkgs/misc/lilypond/with-fonts.nix
2021-01-25 18:31:47 +01:00

18 lines
372 B
Nix

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