1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

stockfish: fix x64 darwin (#351114)

This commit is contained in:
Emily 2024-10-26 01:22:46 +01:00 committed by GitHub
commit 1aa26fa214
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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; {