mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
19 lines
399 B
Nix
19 lines
399 B
Nix
{ lib, lndir, symlinkJoin, makeWrapper
|
|
, lilypond, openlilylib-fonts
|
|
}:
|
|
|
|
lib.appendToName "with-fonts" (symlinkJoin {
|
|
inherit (lilypond) meta name version ;
|
|
|
|
paths = [ lilypond ] ++ openlilylib-fonts.all;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ lndir ];
|
|
|
|
postBuild = ''
|
|
for p in $out/bin/*; do
|
|
wrapProgram "$p" --set LILYPOND_DATADIR "$datadir"
|
|
done
|
|
'';
|
|
})
|