2016-03-26 18:16:09 +00:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, boost, protobuf, freeimage
|
|
|
|
, boost-build, boost_process
|
|
|
|
, xorg_sys_opengl, tbb, ogre, tinyxml-2
|
2018-07-21 01:44:44 +01:00
|
|
|
, libtar, glxinfo, libusb, libxslt, ignition
|
2016-03-26 18:16:09 +00:00
|
|
|
, pythonPackages, utillinux
|
|
|
|
|
|
|
|
# these deps are hidden; cmake doesn't catch them
|
2018-07-17 21:11:16 +01:00
|
|
|
, gazeboSimulator, sdformat ? gazeboSimulator.sdformat, curl, tinyxml, qt4
|
|
|
|
, xlibsWrapper
|
2016-03-26 18:16:09 +00:00
|
|
|
, withIgnitionTransport ? true
|
|
|
|
, libav, withLibAvSupport ? true
|
|
|
|
, openal, withAudioSupport ? false
|
|
|
|
, withQuickBuild ? false, withHeadless ? false, withLowMemorySupport ? false
|
|
|
|
, doxygen, withDocs ? true
|
|
|
|
, bullet, withBulletEngineSupport ? false
|
|
|
|
, graphviz, withModelEditorSchematicView ? true # graphviz needed for this view
|
|
|
|
, gdal, withDigitalElevationTerrainsSupport ? true
|
|
|
|
, gts, withConstructiveSolidGeometrySupport ? true
|
|
|
|
, hdf5, withHdf5Support ? true
|
|
|
|
, version ? "7.0.0"
|
|
|
|
, src-sha256 ? "127q2g93kvmak2b6vhl13xzg56h09v14s4pki8wv7aqjv0c3whbl"
|
|
|
|
, ...
|
|
|
|
}: with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
inherit version;
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gazebo";
|
2016-03-26 18:16:09 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://osrf-distributions.s3.amazonaws.com/gazebo/releases/${pname}-${version}.tar.bz2";
|
2016-03-26 18:16:09 +00:00
|
|
|
sha256 = src-sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true; # gazebo needs this so bad
|
2016-09-26 23:42:08 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR:PATH=lib"
|
|
|
|
"-DCMAKE_INSTALL_INCLUDEDIR=include" ]
|
2016-03-26 18:16:09 +00:00
|
|
|
++ optional withQuickBuild [ "-DENABLE_TESTS_COMPILATION=False" ]
|
|
|
|
++ optional withLowMemorySupport [ "-DUSE_LOW_MEMORY_TESTS=True" ]
|
|
|
|
++ optional withHeadless [ "-DENABLE_SCREEN_TESTS=False" ];
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
propagatedNativeBuildInputs = [ boost boost-build boost_process protobuf ];
|
|
|
|
|
2016-03-26 18:16:09 +00:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
#cmake boost protobuf
|
2016-03-26 18:16:09 +00:00
|
|
|
freeimage
|
|
|
|
xorg_sys_opengl
|
|
|
|
tbb
|
|
|
|
ogre
|
|
|
|
tinyxml-2
|
|
|
|
libtar
|
|
|
|
glxinfo
|
|
|
|
libusb
|
|
|
|
libxslt
|
|
|
|
ignition.math2
|
|
|
|
sdformat
|
|
|
|
pythonPackages.pyopengl
|
|
|
|
|
|
|
|
# TODO: add these hidden deps to cmake configuration & submit upstream
|
|
|
|
curl
|
|
|
|
tinyxml
|
2018-07-17 21:11:16 +01:00
|
|
|
xlibsWrapper
|
2017-02-18 20:59:45 +00:00
|
|
|
qt4
|
2016-03-26 18:16:09 +00:00
|
|
|
] ++ optional stdenv.isLinux utillinux # on Linux needs uuid/uuid.h
|
|
|
|
++ optional withDocs doxygen
|
|
|
|
++ optional withLibAvSupport libav #TODO: package rubygem-ronn and put it here
|
|
|
|
++ optional withAudioSupport openal
|
|
|
|
++ optional withBulletEngineSupport bullet
|
|
|
|
++ optional withIgnitionTransport ignition.transport
|
|
|
|
++ optional withModelEditorSchematicView graphviz
|
|
|
|
++ optional withDigitalElevationTerrainsSupport gdal
|
|
|
|
++ optional withConstructiveSolidGeometrySupport gts
|
|
|
|
++ optional withHdf5Support hdf5;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://gazebosim.org/;
|
|
|
|
description = "Multi-robot simulator for outdoor environments";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ pxc ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|