Skip to content

Commit 47f582f

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flake.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@
5555
doCheck = false;
5656
});
5757
});
58+
darwin = (final: prev: prev.lib.optionalAttrs (prev.stdenv.hostPlatform.isDarwin) {
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+
apple-sdk = prev.apple-sdk_11;
64+
});
5865
};
5966
supportedSystems = [
6067
"x86_64-linux"

0 commit comments

Comments
 (0)