2021-01-15 14:21:58 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, ace
|
2016-02-19 18:01:32 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "yarp";
|
2018-03-10 04:41:31 +01:00
|
|
|
version = "2.3.70.2";
|
2016-02-19 18:01:32 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "robotology";
|
|
|
|
repo = "yarp";
|
2016-11-28 17:03:19 +01:00
|
|
|
rev = "v${version}";
|
2018-03-10 04:41:31 +01:00
|
|
|
sha256 = "0mphh899niy30xbjjwi9xpsliq8mladfldbbbjfngdrqfhiray1a";
|
2016-02-19 18:01:32 +01:00
|
|
|
};
|
|
|
|
|
2020-12-31 08:48:55 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ ace ];
|
2016-02-19 18:01:32 +01:00
|
|
|
|
2016-10-20 19:34:03 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DYARP_COMPILE_UNMAINTAINED:BOOL=ON"
|
|
|
|
"-DCREATE_YARPC:BOOL=ON"
|
|
|
|
"-DCREATE_YARPCXX:BOOL=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
# since we cant expand $out in cmakeFlags
|
|
|
|
preConfigure = ''cmakeFlags="$cmakeFlags -DCMAKE_INSTALL_LIBDIR=$out/lib"'';
|
|
|
|
|
|
|
|
postInstall = "mv ./$out/lib/*.so $out/lib/";
|
|
|
|
|
2016-02-19 18:01:32 +01:00
|
|
|
meta = {
|
|
|
|
description = "Yet Another Robot Platform";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://yarp.it";
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.nico202 ];
|
2016-02-19 18:01:32 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|