Files
simplex-chat/scripts/nix/windows-rts-project.nix
T
Moritz Angermann d28b2c0b94 Guard Windows RTS DLL search path conversion failures
Resolve relative paths once, retain successful namespace conversion, and use the resolved absolute path when conversion fails. Preserve the DLL directory cookie and Win32 errors across cleanup.

Apply only to Linux-built Win64 ghc914-sh v2 target RTS packages. Add a real-module scope check and native caller boundary regression; Windows runtime qualification remains separate.
2026-10-17 12:53:26 +09:00

17 lines
520 B
Nix

{ config, lib, pkgs, ... }:
lib.mkIf (
pkgs.stdenv.hostPlatform.isWindows
&& pkgs.stdenv.hostPlatform.isx86_64
&& pkgs.stdenv.buildPlatform.isLinux
&& config.compiler-nix-name == "ghc914-sh"
&& config.builderVersion == 2
) {
# Cross projects build target boot libraries here, including both iserv
# flavours. Keep their Haskell ways and the native compiler unchanged.
modules = [
({ lib, ... }: {
packages.rts.patches = lib.mkAfter [ ./ghc914-rts-windows-dll-search-path.patch ];
})
];
}