summaryrefslogtreecommitdiffstats
path: root/pkgs/misc/lilypond
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2015-10-09 07:18:41 -0500
committerThomas Tuegel <ttuegel@gmail.com>2015-10-09 07:18:41 -0500
commit2de259f5742a338f898363c1e5d9a11ddd0425d8 (patch)
tree86d8fbe2c298eb1dfd6934c50995737e13e21775 /pkgs/misc/lilypond
parent0a28867303054bbbe504f1c84a382a201581c059 (diff)
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.
Diffstat (limited to 'pkgs/misc/lilypond')
-rw-r--r--pkgs/misc/lilypond/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/misc/lilypond/default.nix b/pkgs/misc/lilypond/default.nix
index 29bb9d7d6800..9021092d9280 100644
--- a/pkgs/misc/lilypond/default.nix
+++ b/pkgs/misc/lilypond/default.nix
@@ -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
'';