symengine: v0.9.0 -> v0.10.1

This commit is contained in:
twesterhout 2023-06-22 22:35:42 +02:00
parent b7c478e7da
commit d0d3fe37ed

View file

@ -1,28 +1,25 @@
{ lib, stdenv { lib
, stdenv
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, gmp , gmp
, flint , flint
, mpfr , mpfr
, libmpc , libmpc
, catch , withShared ? true
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "symengine"; pname = "symengine";
version = "0.9.0"; version = "0.10.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "symengine"; owner = "symengine";
repo = "symengine"; repo = "symengine";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-5KpxBusJCuwrfFWHbrRKlH6Ic7YivYqz2m+BCbNfZp0="; hash = "sha256-qTu0vS9K6rrr/0SXKpGC9P1QSN/AN7hyO/4DrGvhxWM=";
}; };
postPatch = ''
cp ${catch}/include/catch/catch.hpp symengine/utilities/catch/catch.hpp
'';
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ gmp flint mpfr libmpc ]; buildInputs = [ gmp flint mpfr libmpc ];
@ -36,14 +33,12 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
# error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? # error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not?
"-DBUILD_TESTS=OFF" "-DBUILD_TESTS=OFF"
] ++ lib.optionals withShared [
"-DBUILD_SHARED_LIBS=ON"
]; ];
doCheck = true; doCheck = true;
checkPhase = ''
ctest
'';
meta = with lib; { meta = with lib; {
description = "A fast symbolic manipulation library"; description = "A fast symbolic manipulation library";
homepage = "https://github.com/symengine/symengine"; homepage = "https://github.com/symengine/symengine";