diff options
author | Renaud <c0bw3b@users.noreply.github.com> | 2018-10-21 17:28:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-21 17:28:30 +0200 |
commit | 0cc07aeee6c8d7b3d36ec53dd8d1f8189d37b657 (patch) | |
tree | 329c83a7da6f31d4c2fb083fb9d011b04019c61d | |
parent | 965fa769084e19c5ed7d5e47554ffc88a74a0ac0 (diff) | |
parent | f065de344dd2adc11a427f28e2288d94b6ccd3a4 (diff) | |
download | nixlib-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
-rw-r--r-- | pkgs/development/libraries/science/math/cholmod-extra/default.nix | 41 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 43 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; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3e87affc5878..acf4c885fee9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2368,6 +2368,8 @@ with pkgs; carp = callPackage ../development/compilers/carp { }; + cholmod-extra = callPackage ../development/libraries/science/math/cholmod-extra { }; + emscriptenVersion = "1.37.36"; emscripten = callPackage ../development/compilers/emscripten { }; |