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:
parent
68cf164989
commit
4bea964cfb
|
@ -9,26 +9,18 @@
|
|||
, python3Packages
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "crocoddyl";
|
||||
version = "2.0.0";
|
||||
version = "2.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "loco-3d";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
repo = finalAttrs.pname;
|
||||
rev = "v${finalAttrs.version}";
|
||||
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;
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -48,11 +40,26 @@ stdenv.mkDerivation rec {
|
|||
"-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; {
|
||||
description = "Crocoddyl optimal control library";
|
||||
homepage = "https://github.com/loco-3d/crocoddyl";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ wegank ];
|
||||
maintainers = with maintainers; [ nim65s wegank ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue