2016-09-07 10:24:37 +02:00
|
|
|
{ stdenv, fetchurl, cmake, boost, ruby, ignition, tinyxml
|
2016-03-26 19:11:48 +01:00
|
|
|
, name ? "sdformat-${version}"
|
|
|
|
, version ? "4.0.0" # versions known to work with this expression include 3.7.0
|
|
|
|
, srchash-sha256 ? "b0f94bb40b0d83e35ff250a7916fdfd6df5cdc1e60c47bc53dd2da5e2378163e"
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2016-03-26 19:11:48 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://osrf-distributions.s3.amazonaws.com/sdformat/releases/${name}.tar.bz2";
|
|
|
|
sha256 = srchash-sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit name;
|
|
|
|
|
2016-09-06 21:08:42 +02:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace cmake/sdf_config.cmake.in --replace "@CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@" "@LIB_INSTALL_DIR@"
|
|
|
|
'';
|
|
|
|
|
2016-03-26 19:11:48 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = [
|
|
|
|
cmake boost ruby ignition.math2 tinyxml
|
|
|
|
];
|
2016-08-02 18:06:29 +02:00
|
|
|
|
|
|
|
meta = {
|
2016-09-07 10:24:37 +02:00
|
|
|
broken = true;
|
2016-08-02 18:06:29 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
2016-03-26 19:11:48 +01:00
|
|
|
}
|