From 670ac47e524ebcf894197d070d21273e49cffbe2 Mon Sep 17 00:00:00 2001 From: Omid Momenzadeh Date: Sat, 6 Jul 2024 14:30:50 +0330 Subject: [PATCH] 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`. --- pkgs/misc/lilypond/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/misc/lilypond/default.nix b/pkgs/misc/lilypond/default.nix index e66c76614fb2..97e131beb163 100644 --- a/pkgs/misc/lilypond/default.nix +++ b/pkgs/misc/lilypond/default.nix @@ -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 '';