about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-06-19 06:49:36 +0300
committerGitHub <noreply@github.com>2023-06-19 06:49:36 +0300
commit50f3cc9407e594e296923b6dd8e698564f1a0891 (patch)
tree5ad0b423c255d5405fc402bf621b9e3d314d764e /lib
parentf8cd609d852ba0ae43d2c37f26b302debd131779 (diff)
parent6c9be0bf7a004a8c5da4b404bb68c3c0f3a92baf (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.nix3
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"}"