Skip to content

Commit

Permalink
Hack to make sure the DLL linking job works with the check output
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Mar 27, 2024
1 parent ae2b284 commit 4a61827
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 4a61827

Please sign in to comment.