summary refs log tree commit diff
path: root/pkgs/development/libraries/orocos-kdl/default.nix
blob: 4eb18c347c09bf96c9a1fa17ab51964ee8be5a9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, stdenv, fetchFromGitHub, cmake, eigen }:

stdenv.mkDerivation rec {
  pname = "orocos-kdl";
  version = "1.5.0";

  src = fetchFromGitHub {
    owner = "orocos";
    repo = "orocos_kinematics_dynamics";
    rev = "v${version}";
    sha256 = "181w2q6lsrfcvrgqwi6m0xrydjlblj1b654apf2d7zjc7qqgd6ca";
    # Needed to build Python bindings
    fetchSubmodules = true;
  };

  sourceRoot = "source/orocos_kdl";

  nativeBuildInputs = [ cmake ];
  propagatedBuildInputs = [ eigen ];

  meta = with lib; {
    description = "Kinematics and Dynamics Library";
    homepage = "https://www.orocos.org/kdl.html";
    license = licenses.lgpl21Only;
    maintainers = with maintainers; [ lopsided98 ];
    platforms = platforms.all;
  };
}