Files
nixpkgs/pkgs/by-name/pr/proxsuite/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

110 lines
2.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fontconfig,
nix-update-script,
pythonSupport ? false,
python3Packages,
# nativeBuildInputs
cmake,
doxygen,
graphviz,
# propagatedBuildInputs
cereal,
eigen,
jrl-cmakemodules,
simde,
# nativeCheckInputs
ctestCheckHook,
# checkInputs
matio,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "proxsuite";
version = "0.7.2";
src = fetchFromGitHub {
owner = "simple-robotics";
repo = "proxsuite";
rev = "v${finalAttrs.version}";
hash = "sha256-1+a5tFOlEwzhGZtll35EMFceD0iUOOQCbwJd9NcFDlk=";
};
outputs = [
"doc"
"out"
];
cmakeFlags = [
(lib.cmakeBool "BUILD_DOCUMENTATION" true)
(lib.cmakeBool "INSTALL_DOCUMENTATION" true)
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
];
strictDeps = true;
nativeBuildInputs = [
cmake
doxygen
graphviz
]
++ lib.optionals pythonSupport [
python3Packages.python
python3Packages.pythonImportsCheckHook
];
propagatedBuildInputs = [
cereal
eigen
jrl-cmakemodules
simde
]
++ lib.optionals pythonSupport [ python3Packages.nanobind ];
nativeCheckInputs = [ ctestCheckHook ];
checkInputs = [
matio
]
++ lib.optionals pythonSupport [
python3Packages.numpy
python3Packages.scipy
];
ctestFlags = lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [
"--exclude-regex"
"sparse maros meszaros using the API"
];
# Fontconfig error: Cannot load default config file: No such file: (null)
env.FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals stdenv.cc.isClang [
"-Wno-error=missing-template-arg-list-after-template-kw"
]
);
# Fontconfig error: No writable cache directories
preBuild = "export XDG_CACHE_HOME=$(mktemp -d)";
doCheck = true;
pythonImportsCheck = [ "proxsuite" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Advanced Proximal Optimization Toolbox";
homepage = "https://github.com/Simple-Robotics/proxsuite";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ nim65s ];
platforms = lib.platforms.unix ++ lib.platforms.windows;
};
})