From 0c06d77a7d8c0224874e66f9fc68e1f8e06d70d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 7 Jul 2010 15:10:01 +0000 Subject: [PATCH] Adding clapack. svn path=/nixpkgs/trunk/; revision=22514 --- .../development/libraries/clapack/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 ++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/libraries/clapack/default.nix diff --git a/pkgs/development/libraries/clapack/default.nix b/pkgs/development/libraries/clapack/default.nix new file mode 100644 index 000000000000..a40044ee3a34 --- /dev/null +++ b/pkgs/development/libraries/clapack/default.nix @@ -0,0 +1,27 @@ +{stdenv, fetchurl, cmake}: + +stdenv.mkDerivation rec { + name = "clapack-3.2.1"; + + src = fetchurl { + url = http://www.netlib.org/clapack/clapack-3.2.1-CMAKE.tgz; + sha256 = "0nnap9q1mv14g57dl3vkvxrdr10k5w7zzyxs6rgxhia8q8mphgqb"; + }; + + buildNativeInputs = [ cmake ]; + + installPhase = '' + ensureDir $out/include $out/lib + cp SRC/*.a F2CLIBS/libf2c/*.a BLAS/SRC/*.a $out/lib + cp ../INCLUDE/* $out/include + ''; + + doCheck = true; + checkPhase = "ctest"; + + meta = { + homepage = http://www.netlib.org/clapack/; + description = "f2c'ed version of LAPACK"; + license = "BSD"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d9a1bae4da48..f53ece7c8c87 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3674,6 +3674,11 @@ let inherit (xlibs) libX11 xf86vidmodeproto libXmu libXxf86vm; }; + clapack = import ../development/libraries/clapack { + inherit fetchurl cmake; + stdenv = stdenv2; + }; + classads = import ../development/libraries/classads { inherit fetchurl stdenv; };