Skip to content

Commit 7685330

Browse files
authored
Fix mcfgthreads lookup (input-output-hk#2057)
1 parent 23b6e27 commit 7685330

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builder/comp-builder.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ let
620620
lib.optionals (builtins.compareVersions defaults.ghc.version "9.4.1" >= 0)
621621
[ buildPackages.gcc-unwrapped
622622
# Find the versions of mcfgthreads used by stdenv.cc
623-
(pkgs.threadsCrossFor or (x: windows.mcfgthreads) stdenv.cc.version).package
623+
(pkgs.threadsCrossFor or (x: { package = pkgs.windows.mcfgthreads; }) pkgs.stdenv.cc.version).package
624624
])}; do
625625
find "$p" -iname '*.dll' -exec ln -s {} $out/bin \;
626626
done

lib/system-nixpkgs-map.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let
1010
# On windows systems we need these to be propagatedBuildInputs so that the DLLs will be found.
1111
gcclibs = if pkgs.stdenv.hostPlatform.isWindows then [
1212
# Find the versions of mcfgthreads used by stdenv.cc
13-
(pkgs.threadsCrossFor or (x: pkgs.windows.mcfgthreads) pkgs.stdenv.cc.version).package
13+
(pkgs.threadsCrossFor or (x: { package = pkgs.windows.mcfgthreads; }) pkgs.stdenv.cc.version).package
1414
# If we just use `pkgs.buildPackages.gcc.cc` here it breaks the `th-dlls` test. TODO figure out why exactly.
1515
(pkgs.buildPackages.runCommand "gcc-only" { nativeBuildInputs = [ pkgs.buildPackages.xorg.lndir ]; } ''
1616
mkdir $out

0 commit comments

Comments
 (0)