2016-03-26 18:01:54 +00:00
|
|
|
{ stdenv, fetchurl, cmake }:
|
|
|
|
|
|
|
|
let
|
2016-12-09 20:58:23 +00:00
|
|
|
version = "2.6.0";
|
2016-03-26 18:01:54 +00:00
|
|
|
in
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "ign-math2";
|
|
|
|
inherit version;
|
2016-03-26 18:01:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://gazebosim.org/distributions/ign-math/releases/ignition-math2-${version}.tar.bz2";
|
2016-12-09 20:58:23 +00:00
|
|
|
sha256 = "1d4naq0zp704c7ckj2wwmhplxmwkvcs1jib8bklnnd09lhg9j92j";
|
2016-03-26 18:01:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake ];
|
2016-12-09 20:58:23 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags="$cmakeFlags -DCMAKE_INSTALL_INCLUDEDIR=include -DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
'';
|
2016-03-26 18:01:54 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://ignitionrobotics.org/libraries/math";
|
2016-03-26 18:01:54 +00:00
|
|
|
description = "Math library by Ingition Robotics, created for the Gazebo project";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ pxc ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|