treewide: replace make/build/configure/patchFlags with nix lists

This commit is contained in:
Merijn Broeren
2019-12-30 12:58:11 +01:00
committed by Jan Tojnar
parent 08d5fc3934
commit 133103d709
248 changed files with 336 additions and 335 deletions
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
cmakeFlags = "-DWITH_VTK=ON -DBUILD_ALL_MODULES=ON";
cmakeFlags = [ "-DWITH_VTK=ON" "-DBUILD_ALL_MODULES=ON" ];
doCheck = true;
@@ -142,26 +142,27 @@ stdenv.mkDerivation {
numpy pkgconfig six sphinx suitesparse sympy ufl vtk zlib
] ++ stdenv.lib.optionals pythonBindings [ ply python numpy swig ];
patches = [ ./unicode.patch ];
cmakeFlags = "-DDOLFIN_CXX_FLAGS=-std=c++11"
+ " -DDOLFIN_AUTO_DETECT_MPI=OFF"
+ " -DDOLFIN_ENABLE_CHOLMOD=" + (if suitesparse != null then "ON" else "OFF")
+ " -DDOLFIN_ENABLE_DOCS=" + (if docs then "ON" else "OFF")
+ " -DDOLFIN_ENABLE_GTEST=" + (if gtest != null then "ON" else "OFF")
+ " -DDOLFIN_ENABLE_HDF5=" + (if hdf5 != null then "ON" else "OFF")
+ " -DDOLFIN_ENABLE_MPI=" + (if mpi != null then "ON" else "OFF")
+ " -DDOLFIN_ENABLE_PARMETIS=OFF"
+ " -DDOLFIN_ENABLE_PETSC4PY=OFF"
+ " -DDOLFIN_ENABLE_PETSC=OFF"
+ " -DDOLFIN_ENABLE_PYTHON=" + (if pythonBindings then "ON" else "OFF")
+ " -DDOLFIN_ENABLE_SCOTCH=OFF"
+ " -DDOLFIN_ENABLE_SLEPC4PY=OFF"
+ " -DDOLFIN_ENABLE_SLEPC=OFF"
+ " -DDOLFIN_ENABLE_SPHINX=" + (if sphinx != null then "ON" else "OFF")
+ " -DDOLFIN_ENABLE_TESTING=" + (if doCheck then "ON" else "OFF")
+ " -DDOLFIN_ENABLE_TRILINOS=OFF"
+ " -DDOLFIN_ENABLE_UMFPACK=" + (if suitesparse != null then "ON" else "OFF")
+ " -DDOLFIN_ENABLE_VTK=" + (if vtk != null then "ON" else "OFF")
+ " -DDOLFIN_ENABLE_ZLIB=" + (if zlib != null then "ON" else "OFF");
cmakeFlags = [ "-DDOLFIN_CXX_FLAGS=-std=c++11"
"-DDOLFIN_AUTO_DETECT_MPI=OFF"
("-DDOLFIN_ENABLE_CHOLMOD=" + (if suitesparse != null then "ON" else "OFF"))
("-DDOLFIN_ENABLE_DOCS=" + (if docs then "ON" else "OFF"))
("-DDOLFIN_ENABLE_GTEST=" + (if gtest != null then "ON" else "OFF"))
("-DDOLFIN_ENABLE_HDF5=" + (if hdf5 != null then "ON" else "OFF"))
("-DDOLFIN_ENABLE_MPI=" + (if mpi != null then "ON" else "OFF"))
"-DDOLFIN_ENABLE_PARMETIS=OFF"
"-DDOLFIN_ENABLE_PETSC4PY=OFF"
"-DDOLFIN_ENABLE_PETSC=OFF"
("-DDOLFIN_ENABLE_PYTHON=" + (if pythonBindings then "ON" else "OFF"))
"-DDOLFIN_ENABLE_SCOTCH=OFF"
"-DDOLFIN_ENABLE_SLEPC4PY=OFF"
"-DDOLFIN_ENABLE_SLEPC=OFF"
("-DDOLFIN_ENABLE_SPHINX=" + (if sphinx != null then "ON" else "OFF"))
("-DDOLFIN_ENABLE_TESTING=" + (if doCheck then "ON" else "OFF"))
"-DDOLFIN_ENABLE_TRILINOS=OFF"
("-DDOLFIN_ENABLE_UMFPACK=" + (if suitesparse != null then "ON" else "OFF"))
("-DDOLFIN_ENABLE_VTK=" + (if vtk != null then "ON" else "OFF"))
("-DDOLFIN_ENABLE_ZLIB=" + (if zlib != null then "ON" else "OFF"))
];
checkPhase = ''
make runtests
'';