mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
arrayfire: fix build on darwin
This commit is contained in:
parent
8a4c408a8e
commit
f7c59ea08c
@ -1,9 +1,27 @@
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
||||
, opencl-clhpp, ocl-icd, fftw, fftwFloat
|
||||
, blas, lapack, boost, mesa, libGLU, libGL
|
||||
, freeimage, python3, clfft, clblas
|
||||
, doxygen, buildDocs ? false
|
||||
, cudaSupport ? false, cudatoolkit
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, opencl-clhpp
|
||||
, ocl-icd
|
||||
, fftw
|
||||
, fftwFloat
|
||||
, blas
|
||||
, lapack
|
||||
, boost
|
||||
, mesa
|
||||
, libGLU
|
||||
, libGL
|
||||
, freeimage
|
||||
, python3
|
||||
, clfft
|
||||
, clblas
|
||||
, doxygen
|
||||
, buildDocs ? false
|
||||
, cudaSupport ? false
|
||||
, cudatoolkit
|
||||
, darwin
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -48,14 +66,26 @@ stdenv.mkDerivation rec {
|
||||
strictDeps = true;
|
||||
|
||||
buildInputs = [
|
||||
opencl-clhpp fftw fftwFloat
|
||||
blas lapack
|
||||
libGLU libGL
|
||||
mesa freeimage
|
||||
boost.out boost.dev
|
||||
] ++ (lib.optional stdenv.isLinux ocl-icd)
|
||||
++ (lib.optional cudaSupport cudatoolkit)
|
||||
++ (lib.optional buildDocs doxygen);
|
||||
opencl-clhpp
|
||||
fftw
|
||||
fftwFloat
|
||||
blas
|
||||
lapack
|
||||
libGLU
|
||||
libGL
|
||||
mesa
|
||||
freeimage
|
||||
boost.out
|
||||
boost.dev
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
ocl-icd
|
||||
] ++ lib.optionals cudaSupport [
|
||||
cudatoolkit
|
||||
] ++ lib.optionals buildDocs [
|
||||
doxygen
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk_11_0.frameworks.Accelerate
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A general-purpose library for parallel and massively-parallel computations";
|
||||
|
@ -19577,7 +19577,7 @@ with pkgs;
|
||||
|
||||
armadillo = callPackage ../development/libraries/armadillo { };
|
||||
|
||||
arrayfire = callPackage ../development/libraries/arrayfire { };
|
||||
arrayfire = darwin.apple_sdk_11_0.callPackage ../development/libraries/arrayfire { };
|
||||
|
||||
arrow-cpp = callPackage ../development/libraries/arrow-cpp { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user