mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
48 lines
890 B
Nix
48 lines
890 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, gmp
|
|
, flint
|
|
, mpfr
|
|
, libmpc
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "symengine";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "symengine";
|
|
repo = "symengine";
|
|
rev = "v${version}";
|
|
sha256 = "129iv9maabmb42ylfdv0l0g94mcbf3y4q3np175008rcqdr8z6h1";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ gmp flint mpfr libmpc ];
|
|
|
|
cmakeFlags = [
|
|
"-DWITH_FLINT=ON"
|
|
"-DINTEGER_CLASS=flint"
|
|
"-DWITH_SYMENGINE_THREAD_SAFE=yes"
|
|
"-DWITH_MPC=yes"
|
|
"-DBUILD_FOR_DISTRIBUTION=yes"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
ctest
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A fast symbolic manipulation library";
|
|
homepage = "https://github.com/symengine/symengine";
|
|
platforms = platforms.unix ++ platforms.windows;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
|
|
}
|