Skip to content

Commit 8c7da25

Browse files
committed
fix the apple-sdk on x86_64-darwin
1 parent 91e6c1c commit 8c7da25

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tool-map.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,15 @@ compiler-nix-name: tool: {
5555
# cabal = { src = { outPath = self.inputs.cabal; filterPath = { path, ... }: path; }; }
5656
#
5757
cabalProjectFileName = "cabal.bootstrap.project";
58+
modules = [({pkgs, lib, ...}: {
59+
# error: use of undeclared identifier 'IP_RECVTOS'
60+
# for whatever reason nixpkgs 24.11 defines x86_64-darwin
61+
# to be sdk-10.12.2, and aarch64-darwin to be sdk-11.
62+
# nixpkgs 25.05 will drop sdk-10.12, and unify aarch64 and x86 at last.
63+
packages.network.components.library.libs = lib.mkIf (pkgs.stdenv.hostPlatform.isDarwin && lib.versionOlder pkgs.apple-sdk.version "11") [
64+
pkgs.apple-sdk_11
65+
(pkgs.darwinMinVersionHook "11.0")
66+
];
67+
})];
5868
};
5969
}.${tool} or fixed-versions.${tool}.${compiler-nix-name} or {}

0 commit comments

Comments
 (0)