From 91b878a48bfa7e6446be4f08a65b6f3be7457a94 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 18 Apr 2024 11:35:05 +0200 Subject: [PATCH] lilypond: fix $PATH (#302423) Co-authored-by: Aleksana Co-authored-by: Sandro --- pkgs/misc/lilypond/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/misc/lilypond/default.nix b/pkgs/misc/lilypond/default.nix index 5fa5e75a637d..acb3a543f68a 100644 --- a/pkgs/misc/lilypond/default.nix +++ b/pkgs/misc/lilypond/default.nix @@ -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 '';