diff --git a/pkgs/by-name/he/heimdall/package.nix b/pkgs/by-name/he/heimdall/package.nix index bfa6860f0922..972811d010c8 100644 --- a/pkgs/by-name/he/heimdall/package.nix +++ b/pkgs/by-name/he/heimdall/package.nix @@ -61,7 +61,9 @@ stdenv.mkDerivation (finalAttrs: { description = "Cross-platform open-source tool suite used to flash firmware onto Samsung Galaxy devices"; homepage = "https://git.sr.ht/~grimler/Heimdall"; license = lib.licenses.mit; - mainProgram = if enableGUI then "heimdall-frontend" else "heimdall"; + mainProgram = + (if enableGUI then "heimdall-frontend" else "heimdall") + + lib.optionalString stdenv.hostPlatform.isWindows ".exe"; maintainers = with lib.maintainers; [ surfaceflinger ];