1{ stdenv, fetchurl, cmake }:
2
3let
4 version = "2.6.0";
5in
6stdenv.mkDerivation rec {
7 name = "ign-math2-${version}";
8
9 src = fetchurl {
10 url = "http://gazebosim.org/distributions/ign-math/releases/ignition-math2-${version}.tar.bz2";
11 sha256 = "1d4naq0zp704c7ckj2wwmhplxmwkvcs1jib8bklnnd09lhg9j92j";
12 };
13
14 buildInputs = [ cmake ];
15 preConfigure = ''
16 cmakeFlags="$cmakeFlags -DCMAKE_INSTALL_INCLUDEDIR=include -DCMAKE_INSTALL_LIBDIR=lib"
17 '';
18
19 meta = with stdenv.lib; {
20 homepage = https://ignitionrobotics.org/libraries/math;
21 description = "Math library by Ingition Robotics, created for the Gazebo project";
22 license = licenses.asl20;
23 maintainers = with maintainers; [ pxc ];
24 platforms = platforms.all;
25 };
26}