Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 29 lines 792 B view raw
1{ stdenv, fetchurl, cmake, boost, ruby, ignition, tinyxml 2 , name ? "sdformat-${version}" 3 , version ? "4.0.0" # versions known to work with this expression include 3.7.0 4 , srchash-sha256 ? "b0f94bb40b0d83e35ff250a7916fdfd6df5cdc1e60c47bc53dd2da5e2378163e" 5 , ... 6 }: 7 8stdenv.mkDerivation rec { 9 src = fetchurl { 10 url = "http://osrf-distributions.s3.amazonaws.com/sdformat/releases/${name}.tar.bz2"; 11 sha256 = srchash-sha256; 12 }; 13 14 inherit name; 15 16 prePatch = '' 17 substituteInPlace cmake/sdf_config.cmake.in --replace "@CMAKE_INSTALL_PREFIX@/@LIB_INSTALL_DIR@" "@LIB_INSTALL_DIR@" 18 ''; 19 20 enableParallelBuilding = true; 21 buildInputs = [ 22 cmake boost ruby ignition.math2 tinyxml 23 ]; 24 25 meta = { 26 broken = true; 27 platforms = stdenv.lib.platforms.unix; 28 }; 29}