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