From d0d3fe37ed6969e743c6d86367eb5c6a956471e8 Mon Sep 17 00:00:00 2001 From: twesterhout <14264576+twesterhout@users.noreply.github.com> Date: Thu, 22 Jun 2023 22:35:42 +0200 Subject: [PATCH] symengine: v0.9.0 -> v0.10.1 --- .../libraries/symengine/default.nix | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/pkgs/development/libraries/symengine/default.nix b/pkgs/development/libraries/symengine/default.nix index 4d27e3a9582a..4abaced42ae2 100644 --- a/pkgs/development/libraries/symengine/default.nix +++ b/pkgs/development/libraries/symengine/default.nix @@ -1,28 +1,25 @@ -{ lib, stdenv +{ lib +, stdenv , fetchFromGitHub , cmake , gmp , flint , mpfr , libmpc -, catch +, withShared ? true }: stdenv.mkDerivation rec { pname = "symengine"; - version = "0.9.0"; + version = "0.10.1"; src = fetchFromGitHub { owner = "symengine"; repo = "symengine"; 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 ]; buildInputs = [ gmp flint mpfr libmpc ]; @@ -36,14 +33,12 @@ stdenv.mkDerivation rec { ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ # error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? "-DBUILD_TESTS=OFF" + ] ++ lib.optionals withShared [ + "-DBUILD_SHARED_LIBS=ON" ]; doCheck = true; - checkPhase = '' - ctest - ''; - meta = with lib; { description = "A fast symbolic manipulation library"; homepage = "https://github.com/symengine/symengine";