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.
commit2de259f5742a338f898363c1e5d9a11ddd0425d8
authorThomas Tuegel <ttuegel@gmail.com>
dateFri 9 Oct 2015, 07:18 (11 years ago)
parent0a28867
pkgs/misc/lilypond/default.nix+4−1
@@ -29,8 +29,11 @@ stdenv.mkDerivation rec{
2929
3030 postInstall = ''
3131 for f in "$out/bin/"*; do
32+ # Override default argv[0] setting so LilyPond can find
33+ # its Scheme libraries.
3234 wrapProgram "$f" --set GUILE_AUTO_COMPILE 0 \
33− --set PATH "${ghostscript}/bin"
35+ --set PATH "${ghostscript}/bin" \
36+ --argv0 "$f"
3437 done
3538 '';
3639