mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
lib/systems: use a shell script for native emulator
This avoids pulling in all of `execline`’s closure. Co-authored-by: sternenseemann <sternenseemann@systemli.org>
This commit is contained in:
parent
23e89b7da8
commit
4c81eb7651
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user