2021-06-13 23:00:13 +01:00
|
|
|
{ lib, stdenv, toPythonModule, cmake, orocos-kdl, eigen, python }:
|
2020-09-14 01:06:33 +01:00
|
|
|
|
|
|
|
toPythonModule (stdenv.mkDerivation {
|
|
|
|
pname = "pykdl";
|
|
|
|
inherit (orocos-kdl) version src;
|
|
|
|
|
|
|
|
sourceRoot = "source/python_orocos_kdl";
|
|
|
|
|
2021-06-13 23:00:13 +01:00
|
|
|
# Fix hardcoded installation path
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace dist-packages site-packages
|
|
|
|
'';
|
|
|
|
|
2020-09-14 01:06:33 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2021-06-13 23:00:13 +01:00
|
|
|
buildInputs = [ orocos-kdl eigen ];
|
|
|
|
propagatedBuildInputs = [ python ];
|
2020-09-14 01:06:33 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Kinematics and Dynamics Library (Python bindings)";
|
|
|
|
homepage = "https://www.orocos.org/kdl.html";
|
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
})
|