stdenv: fix evaluation of platform emulator

This commit is contained in:
Nick Cao
2022-05-24 11:57:10 +08:00
parent 72a2c11e15
commit eef4bbd82f

View File

@@ -171,7 +171,7 @@ rec {
wine = (pkgs.winePackagesFor wine-name).minimal;
in
if final.parsed.kernel.name == pkgs.stdenv.hostPlatform.parsed.kernel.name &&
pkgs.stdenv.hostPlatform.isCompatible final
pkgs.stdenv.hostPlatform.canExecute final
then "${pkgs.runtimeShell} -c '\"$@\"' --"
else if final.isWindows
then "${wine}/bin/${wine-name}"