Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions pkgs/development/libraries/science/math/arpack/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ stdenv, fetchurl, gfortran, openblas }:

let version = "3.1.4";
in
stdenv.mkDerivation {
name = "arpack-${version}";
src = fetchurl {
url = "http://forge.scilab.org/index.php/p/arpack-ng/downloads/get/arpack-ng_${version}.tar.gz";
sha256 = "0m4cqy3d7fpzx1nac3brhr298qj7vx3fchjdz5b7n0pp616cmcm1";
};

buildInputs = [ gfortran ];
propagatedBuildInputs = [ openblas ];

# Auto-detection fails because gfortran brings in BLAS by default
configureFlags="--with-blas=-lopenblas --with-lapack=-lopenblas";

meta = {
homepage = "http://forge.scilab.org/index.php/p/arpack-ng/";
description = "A collection of Fortran77 subroutines to solve large scale eigenvalue problems";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.bsd3;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9730,6 +9730,8 @@ let

### SCIENCE/MATH

arpack = callPackage ../development/libraries/science/math/arpack { };

atlas = callPackage ../development/libraries/science/math/atlas {
# The build process measures CPU capabilities and optimizes the
# library to perform best on that particular machine. That is a
Expand Down