1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/symengine/default.nix
R. RyanTM 68014be35e symengine: 0.4.0 -> 0.4.1
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
2019-08-05 23:36:00 -07:00

48 lines
913 B
Nix

{ stdenv
, fetchFromGitHub
, cmake
, gmp
, flint
, mpfr
, libmpc
}:
stdenv.mkDerivation rec {
name = "symengine-${version}";
version = "0.4.1";
src = fetchFromGitHub {
owner = "symengine";
repo = "symengine";
rev = "v${version}";
sha256 = "0qqxr7l5lr81k6fs2h5isr43x0dw07rwg3ivl6vd8zmmcgsp9ygd";
};
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 ];
};
}