Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 50 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ lib, stdenv, fetchFromGitHub, cmake, gmp, flint, mpfr, libmpc, withShared ? true}:
stdenv.mkDerivation rec { pname = "symengine"; version = "0.11.2";
src = fetchFromGitHub { owner = "symengine"; repo = "symengine"; rev = "v${version}"; hash = "sha256-CwVDpDbx00r7Fys+5r1n0m/E86zTx1i4ti5JCcVp20g="; };
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" ] ++ 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;
meta = with lib; { description = "A fast symbolic manipulation library"; homepage = "https://github.com/symengine/symengine"; platforms = platforms.unix ++ platforms.windows; license = licenses.bsd3; maintainers = [ maintainers.costrouc ]; };
}