aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/science/math/cholmod-extra
diff options
context:
space:
mode:
authorJaakko Luttinen <jaakko.luttinen@iki.fi>2018-10-10 22:03:46 +0300
committerJaakko Luttinen <jaakko.luttinen@iki.fi>2018-10-10 22:08:25 +0300
commitf065de344dd2adc11a427f28e2288d94b6ccd3a4 (patch)
treed1ed3c9ac3c0907e53cd037b30bbce3da0037e96 /pkgs/development/libraries/science/math/cholmod-extra
parentf9d247a8d8ae8b4a8a36cc732d56f2e17f18e5a6 (diff)
cholmod-extra: init at 1.2.0
Diffstat (limited to 'pkgs/development/libraries/science/math/cholmod-extra')
-rw-r--r--pkgs/development/libraries/science/math/cholmod-extra/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/libraries/science/math/cholmod-extra/default.nix b/pkgs/development/libraries/science/math/cholmod-extra/default.nix
new file mode 100644
index 000000000000..537fcb93a87e
--- /dev/null
+++ b/pkgs/development/libraries/science/math/cholmod-extra/default.nix
@@ -0,0 +1,41 @@
+{ stdenv, fetchFromGitHub, gfortran, suitesparse, openblas }:
+let
+ suitesparse_ = suitesparse;
+in let
+ # SuiteSparse must use the same openblas
+ suitesparse = suitesparse_.override { inherit openblas; };
+in stdenv.mkDerivation rec {
+
+ name = "${pname}-${version}";
+ pname = "cholmod-extra";
+ version = "1.2.0";
+
+ src = fetchFromGitHub {
+ repo = pname;
+ owner = "jluttine";
+ rev = version;
+ sha256 = "0hz1lfp0zaarvl0dv0zgp337hyd8np41kmdpz5rr3fc6yzw7vmkg";
+ };
+
+ buildInputs = [ suitesparse gfortran openblas ];
+
+ buildFlags = [
+ "BLAS=-lopenblas"
+ ];
+
+ installFlags = [
+ "INSTALL_LIB=$(out)/lib"
+ "INSTALL_INCLUDE=$(out)/include"
+ ];
+
+ doCheck = true;
+
+ meta = with stdenv.lib; {
+ homepage = https://github.com/jluttine/cholmod-extra;
+ description = "A set of additional routines for SuiteSparse CHOLMOD Module";
+ license = with licenses; [ gpl2Plus ];
+ maintainers = with maintainers; [ jluttine ];
+ platforms = with platforms; unix;
+ };
+
+}