nixpkgs/pkgs/development/libraries/science/math/liblapack/default.nix
Lluís Batlle i Rossell 5e2de19cc1 Fixing octave, so plot(1) works.
Linking octave with clapack did not work.

I updated lapack, and additionally I build it with atlas, instead of blas. That should give
better performance. I don't know if atlas builds everywhere though.

On the other hand, maybe some programs linking with liblapack will fail. We'll have to check
the hydra reports.

I plan to remove clapack; liblapack provides a C interface too.


svn path=/nixpkgs/trunk/; revision=32464
2012-02-21 21:43:44 +00:00

27 lines
702 B
Nix

{ stdenv, fetchurl, gfortran, atlas, cmake }:
stdenv.mkDerivation {
name = "liblapack-3.4.0";
src = fetchurl {
url = "http://www.netlib.org/lapack/lapack-3.4.0.tgz";
sha256 = "1sf30v1ps5icg67dvw5sbx5yhypx13am470gqg2f7l04f3wrw4x7";
};
propagatedBuildInputs = [ atlas ];
buildInputs = [ gfortran cmake ];
cmakeFlags = [
"-DUSE_OPTIMIZED_BLAS=ON"
"-DBLAS_ATLAS_f77blas_LIBRARY=${atlas}/lib/libf77blas.a"
"-DBLAS_ATLAS_atlas_LIBRARY=${atlas}/lib/libatlas.a"
"-DCMAKE_Fortran_FLAGS=-fPIC"
];
enableParallelBuilding = true;
meta = {
description = "Linear Algebra PACKage";
license = "revised-BSD";
homepage = "http://www.netlib.org/lapack/";
};
}