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:
parent
0a28867303
commit
2de259f574
|
@ -29,8 +29,11 @@ stdenv.mkDerivation rec{
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for f in "$out/bin/"*; do
|
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 \
|
wrapProgram "$f" --set GUILE_AUTO_COMPILE 0 \
|
||||||
--set PATH "${ghostscript}/bin"
|
--set PATH "${ghostscript}/bin" \
|
||||||
|
--argv0 "$f"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue