git.iko.soy/typeable/nixpkgs
on master help sign in
cholmod-extra: init at 1.2.0
commitf065de344dd2adc11a427f28e2288d94b6ccd3a4 authorJaakko Luttinen <jaakko.luttinen@iki.fi> dateWed 10 Oct 2018, 22:03 (8 years ago) parentf9d247a
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
@@ -2352,6 +2352,8 @@ with pkgs;
23522352
23532353 carp = callPackage ../development/compilers/carp { };
23542354
2355+ cholmod-extra = callPackage ../development/libraries/science/math/cholmod-extra { };
2356+
23552357 emscriptenVersion = "1.37.36";
23562358
23572359 emscripten = callPackage ../development/compilers/emscripten { };