From 2391d84867ec519fbec73e380beb4813cdcbfb6e Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 5 Oct 2008 09:01:59 +0000 Subject: [PATCH] Two math packages svn path=/nixpkgs/trunk/; revision=12955 --- .../libraries/science/math/atlas/default.nix | 17 +++++++++++++ .../science/math/liblapack/default.nix | 25 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/libraries/science/math/atlas/default.nix create mode 100644 pkgs/development/libraries/science/math/liblapack/default.nix diff --git a/pkgs/development/libraries/science/math/atlas/default.nix b/pkgs/development/libraries/science/math/atlas/default.nix new file mode 100644 index 000000000000..1b6a93fe6538 --- /dev/null +++ b/pkgs/development/libraries/science/math/atlas/default.nix @@ -0,0 +1,17 @@ +args: with args; + +stdenv.mkDerivation { + name = "atlas-3.8.2"; + src = fetchurl { + url = http://kent.dl.sourceforge.net/sourceforge/math-atlas/atlas3.8.2.tar.bz2; + sha256 = "1avbfppzgiws3nvqr7isr5a5pfbk3g4gfgd89xhyiywixjj3f7c6"; + }; + + buildInputs = [gfortran]; + + meta = { + description = "Atlas library"; + license = "GPL"; + homepage = http://math-atlas.sourceforge.net/; + }; +} diff --git a/pkgs/development/libraries/science/math/liblapack/default.nix b/pkgs/development/libraries/science/math/liblapack/default.nix new file mode 100644 index 000000000000..fad9218bbc9a --- /dev/null +++ b/pkgs/development/libraries/science/math/liblapack/default.nix @@ -0,0 +1,25 @@ +args: with args; + +stdenv.mkDerivation { + name = "liblapack-3.1.1"; + src = fetchurl { + url = http://www.netlib.org/lapack/lapack.tgz; + sha256 = "0am0yzgqhaz6yzliaxc2cgm2mbqjzwcq70b01migk5231frkbhz4"; + }; + + buildInputs = [gfortran]; + patches = [ ./gfortran.patch ]; + + buildPhase = '' + cp make.inc.example make.inc + make blaslib + # make lapacklib + cd SRC + make + ''; + meta = { + description = "lapack library"; + license = "Free, copyrighted"; + homepage = http://www.netlib.org/lapac; + }; +}