mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
b387031fa9
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/symengine/versions
48 lines
903 B
Nix
48 lines
903 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, gmp
|
|
, flint
|
|
, mpfr
|
|
, libmpc
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "symengine";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "symengine";
|
|
repo = "symengine";
|
|
rev = "v${version}";
|
|
sha256 = "1zgfhqv43qcfkfdyf1p82bcfv05n6iix6yw6qx1y5bnb7dv74irw";
|
|
};
|
|
|
|
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 stdenv.lib; {
|
|
description = "SymEngine is a fast symbolic manipulation library";
|
|
homepage = https://github.com/symengine/symengine;
|
|
platforms = platforms.unix ++ platforms.windows;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
|
|
}
|