sdformat: init at 3.7.0 and 4.0.0

This commit is contained in:
Patrick Callahan 2016-03-26 11:11:48 -07:00
parent b682906b6a
commit 3c95d6d1ea
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,7 @@
{ stdenv, fetchurl, callPackage, ... } @ args:
callPackage ./default.nix (args // rec {
version = "3.7.0";
srchash-sha256 = "07kn8bgvj9mwwinsp2cbmz11z7zw2lgnj61mi1gi1pjg7q9in98q";
})

View File

@ -0,0 +1,23 @@
{ 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
];
}

View File

@ -1572,6 +1572,14 @@ in
gawp = goPackages.gawp.bin // { outputs = [ "bin" ]; };
gazeboSimulator = recurseIntoAttrs {
sdformat = gazeboSimulator.sdformat4;
sdformat3 = callPackage ../development/libraries/sdformat/3.nix { };
sdformat4 = callPackage ../development/libraries/sdformat { };
};
gbdfed = callPackage ../tools/misc/gbdfed {
gtk = gtk2;
};