From 4c81eb765194611cc142b392a53b2f4cf58445e7 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 19 Nov 2024 15:37:19 +0000 Subject: [PATCH] lib/systems: use a shell script for native `emulator` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids pulling in all of `execline`’s closure. Co-authored-by: sternenseemann --- lib/systems/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/systems/default.nix b/lib/systems/default.nix index a6ceef2cc3a1..bc6ea7dc8f14 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -283,7 +283,7 @@ let # to an emulator program. That is, if an emulator requires additional # arguments, a wrapper should be used. if pkgs.stdenv.hostPlatform.canExecute final - then "${pkgs.execline}/bin/exec" + then pkgs.writeShellScript "exec" ''exec "$@"'' else if final.isWindows then "${wine}/bin/wine${optionalString (final.parsed.cpu.bits == 64) "64"}" else if final.isLinux && pkgs.stdenv.hostPlatform.isLinux && final.qemuArch != null