summary refs log tree commit diff
path: root/pkgs/misc/lilypond/with-fonts.nix
blob: 2f3a95a33022e7bcde5839b8ae13d035dcba0de7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ 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
  '';
})