lilypond: disable argv[0] passthrough

Fixes #10290. Lilypond finds its Guile libraries by looking at the path
in argv[0], so it should be hardcoded to the real absolute path to the
executable.
This commit is contained in:
Thomas Tuegel 2015-10-09 07:18:41 -05:00
parent 0a28867303
commit 2de259f574

@ -29,8 +29,11 @@ stdenv.mkDerivation rec{
postInstall = ''
for f in "$out/bin/"*; do
# Override default argv[0] setting so LilyPond can find
# its Scheme libraries.
wrapProgram "$f" --set GUILE_AUTO_COMPILE 0 \
--set PATH "${ghostscript}/bin"
--set PATH "${ghostscript}/bin" \
--argv0 "$f"
done
'';