From 4a61827d2d3f45b7bd8503691611409cdea2d46e Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 14 Nov 2023 17:18:58 -0500 Subject: [PATCH] Hack to make sure the DLL linking job works with the check output --- package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.nix b/package.nix index db17badf0..a334ae48c 100644 --- a/package.nix +++ b/package.nix @@ -338,6 +338,12 @@ in { echo "doc internal-api-docs $out/share/doc/nix/internal-api/html" >> ''${!outputDoc}/nix-support/hydra-build-products ''; + # So the check output gets links for DLLs in the out output. + preFixup = lib.optionalString (stdenv.hostPlatform.isWindows && builtins.elem "check" finalAttrs.outputs) '' + ln -s "$check/lib/"*.dll "$check/bin" + ln -s "$out/bin/"*.dll "$check/bin" + ''; + doInstallCheck = attrs.doInstallCheck; installCheckFlags = "sysconfdir=$(out)/etc";