16 pythonSupport ? false,
19 stdenv.mkDerivation (finalAttrs: {
20 pname = "proxsuite-nlp";
23 src = fetchFromGitHub {
24 owner = "Simple-Robotics";
25 repo = "proxsuite-nlp";
26 rev = "v${finalAttrs.version}";
27 hash = "sha256-JWMvPIxmZ5vSVS3nSlhFyNu8hLSVTc7Hdvd4YmE/pI8=";
40 ] ++ lib.optional pythonSupport python3Packages.pythonImportsCheckHook;
41 checkInputs = [ eigenrand ] ++ lib.optional pythonSupport python3Packages.pytest;
42 propagatedBuildInputs =
47 ++ lib.optionals pythonSupport [
48 python3Packages.pinocchio
49 python3Packages.proxsuite
51 ++ lib.optionals (!pythonSupport) [
57 (lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
58 (lib.cmakeBool "BUILD_WITH_PINOCCHIO_SUPPORT" true)
59 (lib.cmakeBool "BUILD_WITH_PROXSUITE_SUPPORT" true)
62 # Fontconfig error: Cannot load default config file: No such file: (null)
63 env.FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
65 # Fontconfig error: No writable cache directories
66 preBuild = "export XDG_CACHE_HOME=$(mktemp -d)";
69 pythonImportsCheck = [ "proxsuite_nlp" ];
72 description = "Primal-dual augmented Lagrangian solver for nonlinear programming on manifolds";
73 homepage = "https://github.com/Simple-Robotics/proxsuite-nlp";
74 changelog = "https://github.com/Simple-Robotics/proxsuite-nlp/blob/v${finalAttrs.version}/CHANGELOG.md";
75 license = lib.licenses.bsd2;
76 maintainers = with lib.maintainers; [ nim65s ];
77 platforms = lib.platforms.unix;