From 2de259f5742a338f898363c1e5d9a11ddd0425d8 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 9 Oct 2015 07:18:41 -0500 Subject: 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. --- pkgs/misc/lilypond/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pkgs/misc/lilypond/default.nix') 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 ''; -- cgit 1.4.1