|
@ -1,14 +1,14 @@ |
|
|
{ stdenv, fetchFromGitHub, autoconf, pkgconfig, cmake |
|
|
{ stdenv, fetchFromGitHub, autoconf, pkgconfig, cmake |
|
|
, cln, ginac, gmp, boost, eigen3_3, python2, googletest }: |
|
|
|
|
|
|
|
|
, cln, ginac, gmp, boost, eigen3_3, python3, googletest }: |
|
|
|
|
|
|
|
|
let |
|
|
let |
|
|
gtest-cmake = ./gtest.cmake; |
|
|
gtest-cmake = ./gtest.cmake; |
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec { |
|
|
in stdenv.mkDerivation rec { |
|
|
name = "carl-${version}"; |
|
|
name = "carl-${version}"; |
|
|
version = "17.12"; |
|
|
|
|
|
|
|
|
version = "18.06"; |
|
|
|
|
|
|
|
|
buildInputs = [ cln ginac gmp boost python2 googletest ]; |
|
|
|
|
|
|
|
|
buildInputs = [ cln ginac gmp boost python3 googletest ]; |
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf pkgconfig cmake ]; |
|
|
nativeBuildInputs = [ autoconf pkgconfig cmake ]; |
|
|
|
|
|
|
|
@ -18,7 +18,7 @@ in stdenv.mkDerivation rec { |
|
|
owner = "smtrat"; |
|
|
owner = "smtrat"; |
|
|
repo = "carl"; |
|
|
repo = "carl"; |
|
|
rev = version; |
|
|
rev = version; |
|
|
sha256 = "1299i0b6w4v6s2a2kci3jrpdq1lpaw4j3p34gx6gmp9g3n1yp6xq"; |
|
|
|
|
|
|
|
|
sha256 = "0lb4pbs3bwpi4z4bnh5113s9c4fzq7c8iwa0952j2jrhxf4kcb8q"; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
enableParallelBuilding = true; |
|
|
enableParallelBuilding = true; |
|
@ -32,6 +32,7 @@ in stdenv.mkDerivation rec { |
|
|
"-DGINAC_INCLUDE_DIR=${ginac}/include/ginac" |
|
|
"-DGINAC_INCLUDE_DIR=${ginac}/include/ginac" |
|
|
"-DGINAC_LIBRARY=${ginac}/lib/libginac.so" |
|
|
"-DGINAC_LIBRARY=${ginac}/lib/libginac.so" |
|
|
"-DGTEST_FOUND=on" |
|
|
"-DGTEST_FOUND=on" |
|
|
|
|
|
"-DGTEST_VERSION=${googletest.version}" |
|
|
"-DGTEST_MAIN_LIBRARY=${googletest}/lib/libgtest_main.a" |
|
|
"-DGTEST_MAIN_LIBRARY=${googletest}/lib/libgtest_main.a" |
|
|
"-DGTEST_LIBRARY=${googletest}/lib/libgtest.a" |
|
|
"-DGTEST_LIBRARY=${googletest}/lib/libgtest.a" |
|
|
]; |
|
|
]; |
|
@ -39,7 +40,7 @@ in stdenv.mkDerivation rec { |
|
|
postPatch = '' |
|
|
postPatch = '' |
|
|
cp ${gtest-cmake} resources/gtest.cmake |
|
|
cp ${gtest-cmake} resources/gtest.cmake |
|
|
substituteInPlace resources/gtest.cmake --subst-var-by googletest ${googletest} |
|
|
substituteInPlace resources/gtest.cmake --subst-var-by googletest ${googletest} |
|
|
sed -e '/set(GTEST/i include(resources/gtest.cmake)' -i resources/resources.cmake |
|
|
|
|
|
|
|
|
sed -e '/print_resource_info("GTest"/i include(resources/gtest.cmake)' -i resources/resources.cmake |
|
|
''; |
|
|
''; |
|
|
|
|
|
|
|
|
meta = with stdenv.lib; { |
|
|
meta = with stdenv.lib; { |