about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/ignition-math/default.nix
blob: df4c3230b9618a04d6617e709008cc224d9d8bfe (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
{ stdenv, fetchurl, cmake }:

let
  version = "2.6.0";
in
stdenv.mkDerivation {
  pname = "ign-math2";
  inherit version;

  src = fetchurl {
    url = "http://gazebosim.org/distributions/ign-math/releases/ignition-math2-${version}.tar.bz2";
    sha256 = "1d4naq0zp704c7ckj2wwmhplxmwkvcs1jib8bklnnd09lhg9j92j";
  };

  buildInputs = [ cmake ];
  preConfigure = ''
    cmakeFlags="$cmakeFlags -DCMAKE_INSTALL_INCLUDEDIR=include -DCMAKE_INSTALL_LIBDIR=lib"
  '';

  meta = with stdenv.lib; {
    homepage = "https://ignitionrobotics.org/libraries/math";
    description = "Math library by Ingition Robotics, created for the Gazebo project";
    license = licenses.asl20;
    maintainers = with maintainers; [ pxc ];
    platforms = platforms.all;
  };
}