summary refs log blame commit diff
path: root/pkgs/misc/lilypond/with-fonts.nix
blob: 36dbcf170dd5c9edd8dfee613f8736e669106374 (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 ];

  buildInputs = [ makeWrapper lndir ];

  postBuild = ''
    for p in $out/bin/*; do
        wrapProgram "$p" --set LILYPOND_DATADIR "$datadir"
    done
  '';
})