12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromGitHub {
19 rev = "v${finalAttrs.version}";
20 hash = "sha256-XVOS9L2vQeFkPXZieX1ZJiVagR0f2BtiRmSDPB9LQeI=";
23 nativeBuildInputs = [ cmake ];
26 ++ lib.optionals pythonSupport [ python3Packages.pybind11 ]
27 ++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.openmp ];
30 (lib.cmakeBool "BUILD_DOCS" true)
31 (lib.cmakeBool "ENABLE_MULTITHREADING" true)
32 (lib.cmakeBool "BUILD_WITH_BLASFEO" false)
33 (lib.cmakeBool "WITH_PYTHON" pythonSupport)
34 (lib.cmakeBool "WITH_SPECTOOL" false) # this depends on casadi
40 description = "nonlinear optimal control problem solver that aims to be fast, support a broad class of optimal control problems and achieve a high numerical robustness";
41 homepage = "https://github.com/meco-group/fatrop";
42 license = lib.licenses.lgpl3Only;
43 maintainers = with lib.maintainers; [ nim65s ];