lilypond: avoid resetting the PATH in makeWrapper

Using `--set` obscures the user's `PATH`, which
`lilypond-invoke-editor` depends on. The problem can be reproduced by
setting the `LYEDITOR` environment variable before executing
`lilypond-invoke-editor`.
This commit is contained in:
Omid Momenzadeh 2024-07-06 14:30:50 +03:30
parent d085e457eb
commit 670ac47e52
No known key found for this signature in database
GPG Key ID: B538E009A2295AAA

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
# its Scheme libraries.
wrapProgram "$f" \
--set GUILE_AUTO_COMPILE 0 \
--set PATH "${lib.makeBinPath [ ghostscript coreutils (placeholder "out") ]}" \
--prefix PATH : "${lib.makeBinPath [ ghostscript coreutils (placeholder "out") ]}" \
--argv0 "$f"
done
'';