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:
commit
1aa26fa214
|
@ -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 a new issue