summary refs log blame commit diff
path: root/pkgs/misc/lilypond/with-fonts.nix
blob: 1036f474b14d833b7804ccc0dc09363a88415081 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                         

  
                                                   
                                        
 
                                                
 


                                      


                                                          
     
  
{ stdenv, lndir, symlinkJoin, makeWrapper
, lilypond, openlilylib-fonts
}:

stdenv.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
  '';
})