mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-12 00:47:50 +00:00
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.
17 lines
520 B
Nix
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 ];
|
|
})
|
|
];
|
|
}
|