<commit_before>{ stdenv, fetchurl, cmake, boost, ruby_1_9, ignition, tinyxml
  , name ? "sdformat-${version}"
  , version ? "4.0.0" # versions known to work with this expression include 3.7.0
  , srchash-sha256 ? "b0f94bb40b0d83e35ff250a7916fdfd6df5cdc1e60c47bc53dd2da5e2378163e"
  , ...
  }:

let 
  ruby = ruby_1_9;
in
stdenv.mkDerivation rec {
  src = fetchurl { 
      url = "http://osrf-distributions.s3.amazonaws.com/sdformat/releases/${name}.tar.bz2";
      sha256 = srchash-sha256;
  };

  inherit name;

  enableParallelBuilding = true;
  buildInputs = [
    cmake boost ruby ignition.math2 tinyxml
  ];

  meta = {
    platforms = stdenv.lib.platforms.unix;<commit_msg>gazebo.sdformat: fix cmake file<commit_after>{ stdenv, fetchurl, cmake, boost, ruby_1_9, ignition, tinyxml
  , name ? "sdformat-${version}"
  , version ? "4.0.0" # versions known to work with this expression include 3.7.0
  , srchash-sha256 ? "b0f94bb40b0d83e35ff250a7916fdfd6df5cdc1e60c47bc53dd2da5e2378163e"
  , ...
  }:

let 
  ruby = ruby_1_9;
in
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 = {
    platforms = stdenv.lib.platforms.unix;
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.075, 'mean_word_length': 3.6513761467889907, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3010268', 'n_tokens_mistral': 676, 'n_tokens_neox': 596, 'n_words': 104}