Unverified Commit db05bc5d authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

lib/systems: ensure native `emulator` is a string (#358507)

parents cd02253b 2b1f3bb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.writeShellScript "exec" ''exec "$@"''
          then lib.getExe (pkgs.writeShellScriptBin "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