git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #48172 from jluttine/cholmod-extra-1.2.0

cholmod-extra: init at 1.2.0

commit0cc07aeee6c8d7b3d36ec53dd8d1f8189d37b657 authorRenaud <c0bw3b@users.noreply.github.com> dateSun 21 Oct 2018, 17:28 (8 years ago) parent965fa76f065de3
2 files changed+43
pkgs/development/libraries/science/math/cholmod-extra/default.nix+41 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/science/math/cholmod-extra/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{ stdenv, fetchFromGitHub, gfortran, suitesparse, openblas }:
2+let
3+ suitesparse_ = suitesparse;
4+in let
5+ # SuiteSparse must use the same openblas
6+ suitesparse = suitesparse_.override { inherit openblas; };
7+in stdenv.mkDerivation rec {
8+
9+ name = "${pname}-${version}";
10+ pname = "cholmod-extra";
11+ version = "1.2.0";
12+
13+ src = fetchFromGitHub {
14+ repo = pname;
15+ owner = "jluttine";
16+ rev = version;
17+ sha256 = "0hz1lfp0zaarvl0dv0zgp337hyd8np41kmdpz5rr3fc6yzw7vmkg";
18+ };
19+
20+ buildInputs = [ suitesparse gfortran openblas ];
21+
22+ buildFlags = [
23+ "BLAS=-lopenblas"
24+ ];
25+
26+ installFlags = [
27+ "INSTALL_LIB=$(out)/lib"
28+ "INSTALL_INCLUDE=$(out)/include"
29+ ];
30+
31+ doCheck = true;
32+
33+ meta = with stdenv.lib; {
34+ homepage = https://github.com/jluttine/cholmod-extra;
35+ description = "A set of additional routines for SuiteSparse CHOLMOD Module";
36+ license = with licenses; [ gpl2Plus ];
37+ maintainers = with maintainers; [ jluttine ];
38+ platforms = with platforms; unix;
39+ };
40+
41+}
pkgs/top-level/all-packages.nix+2
@@ -2368,6 +2368,8 @@ with pkgs;
23682368
23692369 carp = callPackage ../development/compilers/carp { };
23702370
2371+ cholmod-extra = callPackage ../development/libraries/science/math/cholmod-extra { };
2372+
23712373 emscriptenVersion = "1.37.36";
23722374
23732375 emscripten = callPackage ../development/compilers/emscripten { };