mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
66b6c2ce01
sdformat depends on an old version of ruby and needs to be fixed. Until there is a proper upstream release, mark as broken. sdformat is only used by the gazebo package.
30 lines
792 B
Nix
30 lines
792 B
Nix
{ stdenv, fetchurl, cmake, boost, ruby, ignition, tinyxml
|
|
, name ? "sdformat-${version}"
|
|
, version ? "4.0.0" # versions known to work with this expression include 3.7.0
|
|
, srchash-sha256 ? "b0f94bb40b0d83e35ff250a7916fdfd6df5cdc1e60c47bc53dd2da5e2378163e"
|
|
, ...
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
src = fetchurl {
|
|
url = "http://osrf-distributions.s3.amazonaws.com/sdformat/releases/${name}.tar.bz2";
|
|
sha256 = srchash-sha256;
|
|
};
|
|
|
|
inherit name;
|
|
|
|
prePatch = ''
|
|
substituteInPlace cmake/sdf_config.cmake.in --replace "@CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@" "@LIB_INSTALL_DIR@"
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
buildInputs = [
|
|
cmake boost ruby ignition.math2 tinyxml
|
|
];
|
|
|
|
meta = {
|
|
broken = true;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|