Skip to content

Commit

Permalink
Merge pull request #287255 from SomeoneSerge/fix/onnxruntime-darwin
Browse files Browse the repository at this point in the history
onnxruntime: fix aarch64-darwin
  • Loading branch information
7c6f434c authored Feb 10, 2024
2 parents 2f932e9 + d56c63c commit 8c2f0e2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkgs/development/libraries/eigen/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitLab
, fetchpatch
, cmake
}:

Expand All @@ -17,6 +18,20 @@ stdenv.mkDerivation rec {

patches = [
./include-dir.patch

# Fixes e.g. onnxruntime on aarch64-darwin:
# https://hydra.nixos.org/build/248915128/nixlog/1,
# originally suggested in https://github.com/NixOS/nixpkgs/pull/258392.
#
# The patch is from
# ["Fix vectorized reductions for Eigen::half"](https://gitlab.com/libeigen/eigen/-/merge_requests/699)
# which is two years old,
# but Eigen hasn't had a release in two years either:
# https://gitlab.com/libeigen/eigen/-/issues/2699.
(fetchpatch {
url = "https://gitlab.com/libeigen/eigen/-/commit/d0e3791b1a0e2db9edd5f1d1befdb2ac5a40efe0.patch";
hash = "sha256-8qiNpuYehnoiGiqy0c3Mcb45pwrmc6W4rzCxoLDSvj0=";
})
];

nativeBuildInputs = [ cmake ];
Expand Down

0 comments on commit 8c2f0e2

Please sign in to comment.