nixpkgs/pkgs/development/libraries/science/math/atlas/default.nix
Lluís Batlle i Rossell e4c4ab35e5 I think I fixed atlas for i686. It wants '-b 32'. Why, I don't know.
svn path=/nixpkgs/trunk/; revision=32471
2012-02-22 11:37:10 +00:00

26 lines
667 B
Nix

{ stdenv, fetchurl, gfortran }:
stdenv.mkDerivation {
name = "atlas-3.9.67";
src = fetchurl {
url = mirror://sf/math-atlas/atlas3.9.67.tar.bz2;
sha256 = "06xxlv440z8a3qmfrh17p28girv71c6awvpw5vhpspr0pcsgk1pa";
};
# configure outside of the source directory
preConfigure = '' mkdir build; cd build; configureScript=../configure; '';
# the manual says you should pass -fPIC as configure arg .. It works
configureFlags = "-Fa alg -fPIC" +
(if stdenv.isi686 then " -b 32" else "");
buildInputs = [ gfortran ];
meta = {
description = "Atlas library";
license = "GPL";
homepage = http://math-atlas.sourceforge.net/;
};
}