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
68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{
|
|
cmake,
|
|
doxygen,
|
|
eiquadprog,
|
|
fetchFromGitHub,
|
|
lib,
|
|
osqp-eigen,
|
|
pkg-config,
|
|
pinocchio,
|
|
proxsuite,
|
|
stdenv,
|
|
pythonSupport ? false,
|
|
python3Packages,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tsid";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stack-of-tasks";
|
|
repo = "tsid";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-SS6JhU4fuZtTzv/EY31ixwwLOzmO/dN3H5HEMh/URTA=";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
|
|
(lib.cmakeBool "BUILD_WITH_OSQP" true)
|
|
(lib.cmakeBool "BUILD_WITH_PROXQP" true)
|
|
(lib.cmakeBool "INSTALL_DOCUMENTATION" true)
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"doc"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
doxygen
|
|
cmake
|
|
pkg-config
|
|
]
|
|
++ lib.optionals pythonSupport [
|
|
python3Packages.python
|
|
python3Packages.pythonImportsCheckHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
eiquadprog
|
|
osqp-eigen
|
|
proxsuite
|
|
]
|
|
++ lib.optional (!pythonSupport) pinocchio
|
|
++ lib.optional pythonSupport python3Packages.pinocchio;
|
|
|
|
doCheck = true;
|
|
pythonImportsCheck = [ "tsid" ];
|
|
|
|
meta = {
|
|
description = "Efficient Task Space Inverse Dynamics (TSID) based on Pinocchio";
|
|
homepage = "https://github.com/stack-of-tasks/tsid";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ nim65s ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|