crocoddyl: 2.0.0 -> 2.0.1

while here:
- use finalAttrs instead of rec
- add check & python import check
- add me as maintainer
This commit is contained in:
Guilhem Saurel 2023-07-18 17:25:20 +02:00
parent 68cf164989
commit 4bea964cfb

View file

@ -9,26 +9,18 @@
, python3Packages , python3Packages
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "crocoddyl"; pname = "crocoddyl";
version = "2.0.0"; version = "2.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "loco-3d"; owner = "loco-3d";
repo = pname; repo = finalAttrs.pname;
rev = "v${version}"; rev = "v${finalAttrs.version}";
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-wDHCHTJXmJjU7mhQ2huUVdEc9ap7PMeqlHPrKm//jBQ="; hash = "sha256-h7rzLSvmWOZCP8rvmUEhFeMEiPhojfbvkt+fNKpgoXo=";
}; };
patches = [
# error: no matching function for call to 'max(double&, int)'
(fetchpatch {
url = "https://github.com/loco-3d/crocoddyl/commit/d2e4116257595317740975e745739bb76b92e5c0.patch";
hash = "sha256-M79jNdIxzx9PfW3TStRny76dVo/HDf/Rp08ZPx+ymBg";
})
];
strictDeps = true; strictDeps = true;
nativeBuildInputs = [ nativeBuildInputs = [
@ -48,11 +40,26 @@ stdenv.mkDerivation rec {
"-DBUILD_PYTHON_INTERFACE=OFF" "-DBUILD_PYTHON_INTERFACE=OFF"
]; ];
prePatch = ''
substituteInPlace \
examples/CMakeLists.txt \
examples/log/check_logfiles.sh \
--replace /bin/bash ${stdenv.shell}
'';
doCheck = true;
pythonImportsCheck = [
"crocoddyl"
];
checkInputs = lib.optionals (pythonSupport) [
python3Packages.scipy
];
meta = with lib; { meta = with lib; {
description = "Crocoddyl optimal control library"; description = "Crocoddyl optimal control library";
homepage = "https://github.com/loco-3d/crocoddyl"; homepage = "https://github.com/loco-3d/crocoddyl";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ wegank ]; maintainers = with maintainers; [ nim65s wegank ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} })