stockfish: fix x64 darwin

use sdk 11 and set min version to 10.15 to match the makefiles
This commit is contained in:
Reno Dakota 2024-10-25 08:15:34 +00:00
parent fd00e32347
commit 9b00500492
No known key found for this signature in database

View File

@ -1,4 +1,12 @@
{ lib, stdenv, fetchurl, fetchFromGitHub }:
{
lib,
stdenv,
fetchurl,
fetchFromGitHub,
apple-sdk,
apple-sdk_11,
darwinMinVersionHook
}:
let
# The x86-64-modern may need to be refined further in the future
@ -46,6 +54,14 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" "ARCH=${arch}" "CXX=${stdenv.cc.targetPrefix}c++" ];
buildFlags = [ "build" ];
buildInputs = lib.optionals (
stdenv.hostPlatform.isDarwin
&& lib.versionOlder apple-sdk.version "11") [
apple-sdk_11
(darwinMinVersionHook "10.15")
];
enableParallelBuilding = true;
meta = with lib; {