nixpkgs/pkgs/applications/science/robotics/yarp/default.nix

38 lines
902 B
Nix
Raw Normal View History

2016-02-19 17:01:32 +00:00
{ stdenv, fetchFromGitHub, pkgconfig, cmake, ace
}:
stdenv.mkDerivation rec {
name = "yarp-${version}";
2016-11-28 16:03:19 +00:00
version = "2.3.68";
2016-02-19 17:01:32 +00:00
src = fetchFromGitHub {
owner = "robotology";
repo = "yarp";
2016-11-28 16:03:19 +00:00
rev = "v${version}";
sha256 = "1ksz2kv4v14fqgz3fsvvmdk2sikhnxr11jhhf7c2547x6jbzhda6";
2016-02-19 17:01:32 +00:00
};
buildInputs = [ cmake ace ];
enableParallelBuilding = true;
2016-10-20 18:34:03 +01: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 17:01:32 +00:00
meta = {
description = "Yet Another Robot Platform";
homepage = http://yarp.it;
license = stdenv.lib.licenses.lgpl21;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.nico202 ];
};
}