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