1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/misc/lilypond/with-fonts.nix
Omid Momenzadeh c205944161 lilypond-with-fonts: fix lilypond not finding its libraries
Fixes #140152. The fix is inspired by how lilypond-with-fonts was
packaged in v18.09.
2021-10-10 02:13:55 -05:00

18 lines
396 B
Nix

{ lib, symlinkJoin, makeWrapper
, lilypond, openlilylib-fonts
}:
lib.appendToName "with-fonts" (symlinkJoin {
inherit (lilypond) meta name version ;
paths = [ lilypond ] ++ openlilylib-fonts.all;
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
for p in $out/bin/*; do
wrapProgram "$p" --set LILYPOND_DATADIR "$out/share/lilypond/${lilypond.version}"
done
'';
})