symengine: init at 0.3.0
symengine: init at 0.3.0
This commit is contained in:
parent
150980c092
commit
fe2d30e1c8
1 changed files with 12 additions and 3 deletions
|
@ -3,26 +3,35 @@
|
||||||
, cmake
|
, cmake
|
||||||
, gmp
|
, gmp
|
||||||
, flint
|
, flint
|
||||||
|
, mpfr
|
||||||
|
, libmpc
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "symengine-${version}";
|
name = "symengine-${version}";
|
||||||
version = "0.3.0";
|
version = "0.4.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "symengine";
|
owner = "symengine";
|
||||||
repo = "symengine";
|
repo = "symengine";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1p7hk163rgn1zzvjlq4vskblry3s2rg5bc7xlr08wfqckfr47bqc";
|
sha256 = "1kz893p3pmsw3gfwickk2nliw8p63yp89xriad7kpw4kmhvgr8gb";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake gmp flint ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
buildInputs = [ gmp flint mpfr libmpc ];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DWITH_FLINT=ON"
|
"-DWITH_FLINT=ON"
|
||||||
|
"-DINTEGER_CLASS=flint"
|
||||||
|
"-DWITH_SYMENGINE_THREAD_SAFE=yes"
|
||||||
|
"-DWITH_MPC=yes"
|
||||||
|
"-DBUILD_FOR_DISTRIBUTION=yes"
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
ctest
|
ctest
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue