Allow optional functionality in SimGrid

This commit is contained in:
Michael Raskin 2014-08-12 14:09:46 +04:00
parent e0a7a3a7c3
commit cee539cc9c

View File

@ -1,4 +1,6 @@
{ fetchurl, stdenv, cmake, perl, ruby, boost }:
{ fetchurl, stdenv, cmake, perl, ruby, boost, lua5_1, graphviz, libsigcxx
, libunwind, elfutils
}:
stdenv.mkDerivation rec {
version = "3.11.1";
@ -9,13 +11,9 @@ stdenv.mkDerivation rec {
sha256 = "0mkrzxpf42lmn96khfl1791vram67r2nqsgmppd2yil889nyz5kp";
};
/* FIXME: Ruby currently disabled because of this:
Linking C shared library ../src/.libs/libsimgrid.so
ld: cannot find -lruby-1.8.7-p72
*/
buildInputs = [ cmake perl /* ruby */ boost ];
buildInputs = [ cmake perl ruby boost lua5_1 graphviz libsigcxx libunwind
elfutils
];
preConfigure =
# Make it so that libsimgrid.so will be found when running programs from
@ -23,8 +21,17 @@ stdenv.mkDerivation rec {
'' export LD_LIBRARY_PATH="$PWD/src/.libs"
export cmakeFlags="-Dprefix=$out"
# Enable tracing.
export cmakeFlags="$cmakeFlags -Denable_tracing=on"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE
-isystem $(echo "${libsigcxx}/lib/"sigc++*/include)
-isystem $(echo "${libsigcxx}/include"/sigc++* )
"
export CMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH:$(echo "${libsigcxx}/lib/"sigc++*)"
# Enable more functionality.
export cmakeFlags="$cmakeFlags -Denable_tracing=on -Denable_jedule=on
-Denable_latency_bound_tracking=on -Denable_lua=on
-Denable_ns3=on -Denable_gtnets=on
"
'';
makeFlags = "VERBOSE=1";