heimdall: Append .exe to the main program on Windows

This commit is contained in:
Tim Schumacher
2025-06-15 17:34:43 +00:00
committed by Peter Hoeg
parent ef64feabae
commit a04f07aec3
+3 -1
View File
@@ -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
];