atlas: remove
atlas is broken and can apparently be removed. Fixes #49594
This commit is contained in:
@@ -4,12 +4,9 @@
|
||||
gfortran,
|
||||
cmake,
|
||||
python2,
|
||||
atlas ? null,
|
||||
shared ? false
|
||||
}:
|
||||
let
|
||||
atlasMaybeShared = if atlas != null then atlas.override { inherit shared; }
|
||||
else null;
|
||||
usedLibExtension = if shared then ".so" else ".a";
|
||||
inherit (stdenv.lib) optional optionals;
|
||||
version = "3.8.0";
|
||||
@@ -22,7 +19,6 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1xmwi2mqmipvg950gb0rhgprcps8gy8sjm8ic9rgy2qjlv22rcny";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ atlasMaybeShared ];
|
||||
buildInputs = [ gfortran cmake ];
|
||||
nativeBuildInputs = [ python2 ];
|
||||
|
||||
@@ -30,15 +26,7 @@ stdenv.mkDerivation rec {
|
||||
"-DUSE_OPTIMIZED_BLAS=ON"
|
||||
"-DCMAKE_Fortran_FLAGS=-fPIC"
|
||||
]
|
||||
++ (optionals (atlas != null) [
|
||||
"-DBLAS_ATLAS_f77blas_LIBRARY=${atlasMaybeShared}/lib/libf77blas${usedLibExtension}"
|
||||
"-DBLAS_ATLAS_atlas_LIBRARY=${atlasMaybeShared}/lib/libatlas${usedLibExtension}"
|
||||
])
|
||||
++ (optional shared "-DBUILD_SHARED_LIBS=ON")
|
||||
# If we're on darwin, CMake will automatically detect impure paths. This switch
|
||||
# prevents that.
|
||||
++ (optional stdenv.isDarwin "-DCMAKE_OSX_SYSROOT:PATH=''")
|
||||
;
|
||||
++ (optional shared "-DBUILD_SHARED_LIBS=ON");
|
||||
|
||||
doCheck = ! shared;
|
||||
|
||||
@@ -48,10 +36,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru = {
|
||||
blas = atlas;
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
inherit version;
|
||||
description = "Linear Algebra PACKage";
|
||||
|
||||
Reference in New Issue
Block a user