1 { lib, stdenv, toPythonModule, cmake, orocos-kdl, eigen, python }:
3 toPythonModule (stdenv.mkDerivation {
5 inherit (orocos-kdl) version src;
7 sourceRoot = "${orocos-kdl.src.name}/python_orocos_kdl";
9 # Fix hardcoded installation path
11 substituteInPlace CMakeLists.txt \
12 --replace dist-packages site-packages
15 nativeBuildInputs = [ cmake ];
16 buildInputs = [ orocos-kdl eigen ];
17 propagatedBuildInputs = [ python ];
20 description = "Kinematics and Dynamics Library (Python bindings)";
21 homepage = "https://www.orocos.org/kdl.html";
22 license = licenses.lgpl21Only;
23 maintainers = with maintainers; [ lopsided98 ];
24 platforms = platforms.all;