From 4c14b9a77817527e5c2a8b1d0d3f56ffd3dec08f Mon Sep 17 00:00:00 2001 From: toonn Date: Fri, 11 Mar 2022 19:23:33 +0100 Subject: [PATCH] make-darwin-bundle: Escape outputBin for Nix '' string --- pkgs/build-support/make-darwin-bundle/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/build-support/make-darwin-bundle/default.nix b/pkgs/build-support/make-darwin-bundle/default.nix index 60a89aa3a188..92eee48300b9 100644 --- a/pkgs/build-support/make-darwin-bundle/default.nix +++ b/pkgs/build-support/make-darwin-bundle/default.nix @@ -12,14 +12,16 @@ writeShellScript "make-darwin-bundle-${name}" ('' function makeDarwinBundlePhase() { - mkdir -p "${!outputBin}/Applications/${name}.app/Contents/MacOS" - mkdir -p "${!outputBin}/Applications/${name}.app/Contents/Resources" + mkdir -p "''${!outputBin}/Applications/${name}.app/Contents/MacOS" + mkdir -p "''${!outputBin}/Applications/${name}.app/Contents/Resources" if [ -n "${icon}" ]; then - ln -s "${icon}" "${!outputBin}/Applications/${name}.app/Contents/Resources" + ln -s "${icon}" \ + "''${!outputBin}/Applications/${name}.app/Contents/Resources" fi - ${writeDarwinBundle}/bin/write-darwin-bundle "${!outputBin}" "${name}" "${exec}" + ${writeDarwinBundle}/bin/write-darwin-bundle "''${!outputBin}" "${name}" \ + "${exec}" } preDistPhases+=" makeDarwinBundlePhase"