stockfish: fix x64 darwin
use sdk 11 and set min version to 10.15 to match the makefiles
This commit is contained in:
parent
fd00e32347
commit
9b00500492
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user