lilypond: fix $PATH (#302423)

Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Astro 2024-04-18 11:35:05 +02:00 committed by GitHub
parent e20b16e5a3
commit 91b878a48b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@
, python3, gettext, flex, perl, bison, pkg-config, autoreconfHook, dblatex
, fontconfig, freetype, pango, fontforge, help2man, zip, netpbm, groff
, freefont_ttf, makeFontsConf
, makeWrapper, t1utils, boehmgc, rsync
, makeWrapper, t1utils, boehmgc, rsync, coreutils
, texliveSmall, tex ? texliveSmall.withPackages (ps: with ps; [ lh metafont epsf fontinst ])
}:
@ -19,9 +19,10 @@ stdenv.mkDerivation rec {
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" \
--argv0 "$f"
wrapProgram "$f" \
--set GUILE_AUTO_COMPILE 0 \
--set PATH "${lib.makeBinPath [ ghostscript coreutils (placeholder "out") ]}" \
--argv0 "$f"
done
'';