diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-19 06:49:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-19 06:49:36 +0300 |
commit | 50f3cc9407e594e296923b6dd8e698564f1a0891 (patch) | |
tree | 5ad0b423c255d5405fc402bf621b9e3d314d764e /lib | |
parent | f8cd609d852ba0ae43d2c37f26b302debd131779 (diff) | |
parent | 6c9be0bf7a004a8c5da4b404bb68c3c0f3a92baf (diff) |
Merge pull request #238480 from amjoseph-nixpkgs/pr/lib-systems-redundant
lib/systems: remove redundant test from selectEmulator
Diffstat (limited to 'lib')
-rw-r--r-- | lib/systems/default.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix index 3558ce32fc8cb..eaf070ca71113 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -226,8 +226,7 @@ rec { }; wine = (pkgs.winePackagesFor "wine${toString final.parsed.cpu.bits}").minimal; in - if final.parsed.kernel.name == pkgs.stdenv.hostPlatform.parsed.kernel.name && - pkgs.stdenv.hostPlatform.canExecute final + if pkgs.stdenv.hostPlatform.canExecute final then "${pkgs.runtimeShell} -c '\"$@\"' --" else if final.isWindows then "${wine}/bin/wine${lib.optionalString (final.parsed.cpu.bits == 64) "64"}" |