summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2018-10-21 17:28:30 +0200
committerGitHub <noreply@github.com>2018-10-21 17:28:30 +0200
commit0cc07aeee6c8d7b3d36ec53dd8d1f8189d37b657 (patch)
tree329c83a7da6f31d4c2fb083fb9d011b04019c61d /pkgs/development/libraries
parent965fa769084e19c5ed7d5e47554ffc88a74a0ac0 (diff)
parentf065de344dd2adc11a427f28e2288d94b6ccd3a4 (diff)
downloadnixlib-0cc07aeee6c8d7b3d36ec53dd8d1f8189d37b657.tar
nixlib-0cc07aeee6c8d7b3d36ec53dd8d1f8189d37b657.tar.gz
nixlib-0cc07aeee6c8d7b3d36ec53dd8d1f8189d37b657.tar.bz2
nixlib-0cc07aeee6c8d7b3d36ec53dd8d1f8189d37b657.tar.lz
nixlib-0cc07aeee6c8d7b3d36ec53dd8d1f8189d37b657.tar.xz
nixlib-0cc07aeee6c8d7b3d36ec53dd8d1f8189d37b657.tar.zst
nixlib-0cc07aeee6c8d7b3d36ec53dd8d1f8189d37b657.zip
Merge pull request #48172 from jluttine/cholmod-extra-1.2.0
cholmod-extra: init at 1.2.0
Diffstat (limited to 'pkgs/development/libraries')
-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;
+  };
+
+}