15 pythonSupport ? false,
18 stdenv.mkDerivation (finalAttrs: {
22 src = fetchFromGitHub {
23 owner = "simple-robotics";
25 rev = "v${finalAttrs.version}";
26 hash = "sha256-iKc55WDHArmmIM//Wir6FHrNV84HnEDcBUlwnsbtMME=";
30 # Fix use of system cereal
31 # This was merged upstream and can be removed on next release
33 url = "https://github.com/Simple-Robotics/proxsuite/pull/352/commits/8305864f13ca7dff7210f89004a56652b71f8891.patch";
34 hash = "sha256-XMS/zHFVrEp1P6aDlGrLbrcmuKq42+GdZRH9ObewNCY=";
45 (lib.cmakeBool "BUILD_DOCUMENTATION" true)
46 (lib.cmakeBool "INSTALL_DOCUMENTATION" true)
47 (lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
49 ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [
50 "-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;ProxQP::dense: test primal infeasibility solving"
59 ] ++ lib.optional pythonSupport python3Packages.pythonImportsCheckHook;
60 propagatedBuildInputs = [
65 ] ++ lib.optionals pythonSupport [ python3Packages.pybind11 ];
68 ++ lib.optionals pythonSupport [
73 # Fontconfig error: Cannot load default config file: No such file: (null)
74 env.FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
76 # Fontconfig error: No writable cache directories
77 preBuild = "export XDG_CACHE_HOME=$(mktemp -d)";
80 pythonImportsCheck = [ "proxsuite" ];
83 description = "The Advanced Proximal Optimization Toolbox";
84 homepage = "https://github.com/Simple-Robotics/proxsuite";
85 license = lib.licenses.bsd2;
86 maintainers = with lib.maintainers; [ nim65s ];
87 platforms = lib.platforms.unix;