1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

linbox: Add darwin support

This commit is contained in:
Jake Waksbaum 2018-08-18 20:54:22 +00:00
parent 8014c7f186
commit b99b7c5ef8
2 changed files with 12 additions and 5 deletions

View file

@ -4,7 +4,7 @@
, autoreconfHook
, givaro
, pkgconfig
, openblas
, blas
, fflas-ffpack
, gmpxx
, optimize ? false # impure
@ -29,13 +29,13 @@ stdenv.mkDerivation rec {
buildInputs = [
givaro
openblas
blas
gmpxx
fflas-ffpack
];
configureFlags = [
"--with-blas-libs=-lopenblas"
"--with-blas-libs=-l${blas.linkName}"
"--disable-optimization"
] ++ stdenv.lib.optionals (!optimize) [
# disable SIMD instructions (which are enabled *when available* by default)
@ -65,12 +65,14 @@ stdenv.mkDerivation rec {
doCheck = true;
enableParallelBuilding = true;
meta = {
inherit version;
description = "C++ library for exact, high-performance linear algebra";
license = stdenv.lib.licenses.lgpl21Plus;
maintainers = [stdenv.lib.maintainers.timokau];
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.unix;
homepage = http://linalg.org/;
};
}

View file

@ -9202,7 +9202,12 @@ with pkgs;
};
fflas-ffpack_1 = callPackage ../development/libraries/fflas-ffpack/1.nix {};
linbox = callPackage ../development/libraries/linbox {};
linbox = callPackage ../development/libraries/linbox {
# We need to use blas instead of openblas on darwin, see
# https://github.com/NixOS/nixpkgs/pull/45013 and
# https://github.com/NixOS/nixpkgs/pull/45015.
blas = if stdenv.isDarwin then blas else openblas;
};
ffmpeg_0_10 = callPackage ../development/libraries/ffmpeg/0.10.nix {
inherit (darwin.apple_sdk.frameworks) Cocoa;