Skip to content

Commit

Permalink
lilypond-with-fonts: fix lilypond not finding its libraries
Browse files Browse the repository at this point in the history
Fixes #140152. The fix is inspired by how lilypond-with-fonts was
packaged in v18.09.
  • Loading branch information
omidmnz authored and yurrriq committed Oct 10, 2021
1 parent 0c41607 commit c205944
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkgs/misc/lilypond/with-fonts.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, lndir, symlinkJoin, makeWrapper
{ lib, symlinkJoin, makeWrapper
, lilypond, openlilylib-fonts
}:

Expand All @@ -8,11 +8,10 @@ lib.appendToName "with-fonts" (symlinkJoin {
paths = [ lilypond ] ++ openlilylib-fonts.all;

nativeBuildInputs = [ makeWrapper ];
buildInputs = [ lndir ];

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

0 comments on commit c205944

Please sign in to comment.