17 pythonSupport ? false,
20 stdenv.mkDerivation (finalAttrs: {
21 pname = "proxsuite-nlp";
24 src = fetchFromGitHub {
25 owner = "Simple-Robotics";
26 repo = "proxsuite-nlp";
27 rev = "v${finalAttrs.version}";
28 hash = "sha256-Dy8+pPTv/B6vVdpGndVOV16WSLiENJfaIrn1+FYwcI0=";
37 # Fix use of system jrl-cmakemodules
38 # This patch was merged upstream and can be removed on next release
40 url = "https://github.com/Simple-Robotics/proxsuite-nlp/pull/109/commits/9bf741ce6010052a773071472891f42adc6cbbea.patch";
41 hash = "sha256-sluMVrTw7EXLFa0dqkoZTkpGjKe7zODqIqbJxCdfSwY=";
50 ] ++ lib.optional pythonSupport python3Packages.pythonImportsCheckHook;
51 checkInputs = [ eigenrand ] ++ lib.optional pythonSupport python3Packages.pytest;
52 propagatedBuildInputs =
57 ++ lib.optionals pythonSupport [
58 python3Packages.pinocchio
59 python3Packages.proxsuite
61 ++ lib.optionals (!pythonSupport) [
67 (lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
68 (lib.cmakeBool "BUILD_WITH_PINOCCHIO_SUPPORT" true)
69 (lib.cmakeBool "BUILD_WITH_PROXSUITE_SUPPORT" true)
72 # Fontconfig error: Cannot load default config file: No such file: (null)
73 env.FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
75 # Fontconfig error: No writable cache directories
76 preBuild = "export XDG_CACHE_HOME=$(mktemp -d)";
79 pythonImportsCheck = [ "proxsuite_nlp" ];
82 description = "Primal-dual augmented Lagrangian solver for nonlinear programming on manifolds";
83 homepage = "https://github.com/Simple-Robotics/proxsuite-nlp";
84 changelog = "https://github.com/Simple-Robotics/proxsuite-nlp/blob/v${finalAttrs.version}/CHANGELOG.md";
85 license = lib.licenses.bsd2;
86 maintainers = with lib.maintainers; [ nim65s ];
87 platforms = lib.platforms.unix;