12 stdenv.mkDerivation rec {
16 src = fetchFromGitHub {
20 hash = "sha256-hMTndwIXTqf3cxKZdnn38SFvZLEb48k1Lvm5/hW7U8k=";
23 nativeBuildInputs = [ cmake ];
25 buildInputs = [ gmp flint mpfr libmpc ];
29 "-DINTEGER_CLASS=flint"
30 "-DWITH_SYMENGINE_THREAD_SAFE=yes"
32 "-DBUILD_FOR_DISTRIBUTION=yes"
33 ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
34 # error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not?
36 ] ++ lib.optionals withShared [
37 "-DBUILD_SHARED_LIBS=ON"
43 description = "Fast symbolic manipulation library";
44 homepage = "https://github.com/symengine/symengine";
45 platforms = platforms.unix ++ platforms.windows;
46 license = licenses.bsd3;
47 maintainers = [ maintainers.costrouc ];