Skip to content

Commit

Permalink
stockfish: fix x64 darwin (#351114)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Oct 26, 2024
2 parents 7f6e15e + 9b00500 commit 1aa26fa
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pkgs/games/stockfish/default.nix
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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; {
Expand Down

0 comments on commit 1aa26fa

Please sign in to comment.