1c8aba8334
This makes packages use lapack and blas, which can wrap different BLAS/LAPACK implementations. treewide: cleanup from blas/lapack changes A few issues in the original treewide: - can’t assume blas64 is a bool - unused commented code
30 lines
602 B
Nix
30 lines
602 B
Nix
{ stdenv
|
|
, buildDunePackage
|
|
, dune-configurator
|
|
, fetchFromGitHub
|
|
, alcotest
|
|
, eigen
|
|
, stdio
|
|
, stdlib-shims
|
|
, openblas, blas, lapack
|
|
, owl-base
|
|
, npy
|
|
}:
|
|
|
|
assert (!blas.is64bit) && (!lapack.is64bit);
|
|
assert blas.implementation == "openblas" && lapack.implementation == "openblas";
|
|
|
|
buildDunePackage rec {
|
|
pname = "owl";
|
|
|
|
inherit (owl-base) version src meta useDune2;
|
|
|
|
checkInputs = [ alcotest ];
|
|
buildInputs = [ dune-configurator ];
|
|
propagatedBuildInputs = [
|
|
eigen stdio stdlib-shims openblas owl-base npy
|
|
];
|
|
|
|
doCheck = !stdenv.isDarwin; # https://github.com/owlbarn/owl/issues/462
|
|
}
|