1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/pkgs/misc/lilypond/with-fonts.nix
2020-03-13 13:08:46 +00:00

18 lines
382 B
Nix

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