mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
8ba95b6855
Failing Hydra build: https://hydra.nixos.org/build/163675793
53 lines
997 B
Nix
53 lines
997 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, gmp
|
|
, flint
|
|
, mpfr
|
|
, libmpc
|
|
, catch
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "symengine";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "symengine";
|
|
repo = "symengine";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-5KpxBusJCuwrfFWHbrRKlH6Ic7YivYqz2m+BCbNfZp0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
cp ${catch}/include/catch/catch.hpp symengine/utilities/catch/catch.hpp
|
|
'';
|
|
|
|
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 lib; {
|
|
description = "A fast symbolic manipulation library";
|
|
homepage = "https://github.com/symengine/symengine";
|
|
platforms = platforms.unix ++ platforms.windows;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
|
|
}
|