From a04f07aec389dae71e8d29f7470a31968a23b9f1 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Fri, 13 Jun 2025 00:00:16 +0200 Subject: [PATCH] heimdall: Append .exe to the main program on Windows --- pkgs/by-name/he/heimdall/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ];