@@ -10,41 +10,37 @@
1010, moreTests ? false
1111}:
1212
13−# helpers for options
14−let optionals = stdenv.lib.optionals;
15− optionalString = stdenv.lib.optionalString;
16− optionOnOff = option: "${if option then "on" else "off"}";
13+with stdenv.lib;
14+
15+let
16+ optionOnOff = option: "${if option then "on" else "off"}";
17+ urlVersion = replaceStrings ["."] ["_"];
1718in
1819
1920stdenv.mkDerivation rec {
20− major_version = "3";
21− minor_version = "17";
22− version = "${major_version}.${minor_version}";
2321 name = "simgrid-${version}";
22+ version = "3.17";
2423
2524 src = fetchFromGitHub {
2625 owner = "simgrid";
2726 repo = "simgrid";
28− rev = "v${major_version}_${minor_version}";
27+ rev = "v${urlVersion version}";
2928 sha256 = "0ffs9w141qhw571jsa9sch1cnr332vs4sgj6dsiij2mc24m6wpb4";
30− #rev = "master";
31− #sha256 = "0qvh1jzc2lpnp8234kjx1x4g1a5kfdn6kb15vhk160qgvj98nyqm";
3229 };
3330
34− nativeBuildInputs = [ cmake perl elfutils python3 boost valgrind]
35− ++ optionals fortranSupport [gfortran]
36− ++ optionals buildJavaBindings [openjdk]
37− ++ optionals buildDocumentation [transfig ghostscript doxygen]
38− ++ optionals modelCheckingSupport [libunwind libevent];
31+ nativeBuildInputs = [ cmake perl elfutils python3 boost valgrind ]
32+ ++ optionals fortranSupport [ gfortran ]
33+ ++ optionals buildJavaBindings [ openjdk ]
34+ ++ optionals buildDocumentation [ transfig ghostscript doxygen ]
35+ ++ optionals modelCheckingSupport [ libunwind libevent ];
3936
4037 #buildInputs = optional luaSupport lua5;
4138
42− preConfigure =
43− # Make it so that libsimgrid.so will be found when running programs from
44− # the build dir.
45− ''
39+ # Make it so that libsimgrid.so will be found when running programs from
40+ # the build dir.
41+ preConfigure = ''
4642 export LD_LIBRARY_PATH="$PWD/build/lib"
47− '';
43+ '';
4844
4945 # Release mode is not supported in SimGrid
5046 cmakeBuildType = "Debug";
@@ -59,58 +55,57 @@ stdenv.mkDerivation rec {
5955 # For more information see:
6056 # http://simgrid.gforge.inria.fr/simgrid/latest/doc/install.html#install_cmake_list
6157 cmakeFlags= ''
62− -Denable_documentation=${optionOnOff buildDocumentation}
63− -Denable_java=${optionOnOff buildJavaBindings}
64− -Denable_fortran=${optionOnOff fortranSupport}
65− -Denable_model-checking=${optionOnOff modelCheckingSupport}
66− -Denable_ns3=off
67− -Denable_lua=off
68− -Denable_lib_in_jar=off
69− -Denable_maintainer_mode=off
70− -Denable_mallocators=on
71− -Denable_debug=on
72− -Denable_smpi=on
73− -Denable_smpi_ISP_testsuite=${optionOnOff moreTests}
74− -Denable_smpi_MPICH3_testsuite=${optionOnOff moreTests}
75− -Denable_compile_warnings=${optionOnOff debug}
76− -Denable_compile_optimizations=${optionOnOff (!debug)}
77− -Denable_lto=${optionOnOff (!debug)}
78− '';
79− #-Denable_lua=${optionOnOff luaSupport}
80− #-Denable_smpi_papi=${optionOnOff moreTests}
58+ -Denable_documentation=${optionOnOff buildDocumentation}
59+ -Denable_java=${optionOnOff buildJavaBindings}
60+ -Denable_fortran=${optionOnOff fortranSupport}
61+ -Denable_model-checking=${optionOnOff modelCheckingSupport}
62+ -Denable_ns3=off
63+ -Denable_lua=off
64+ -Denable_lib_in_jar=off
65+ -Denable_maintainer_mode=off
66+ -Denable_mallocators=on
67+ -Denable_debug=on
68+ -Denable_smpi=on
69+ -Denable_smpi_ISP_testsuite=${optionOnOff moreTests}
70+ -Denable_smpi_MPICH3_testsuite=${optionOnOff moreTests}
71+ -Denable_compile_warnings=${optionOnOff debug}
72+ -Denable_compile_optimizations=${optionOnOff (!debug)}
73+ -Denable_lto=${optionOnOff (!debug)}
74+ '';
75+ # -Denable_lua=${optionOnOff luaSupport}
76+ # -Denable_smpi_papi=${optionOnOff moreTests}
8177
8278 makeFlags = optionalString debug "VERBOSE=1";
8379
84− preBuild =
85− ''
86− # Some perl scripts are called to generate test during build which
87− # is before the fixupPhase of nix, so do this manualy here:
88− patchShebangs ..
89− '';
80+ # Some Perl scripts are called to generate test during build which
81+ # is before the fixupPhase, so do this manualy here:
82+ preBuild = ''
83+ patchShebangs ..
84+ '';
9085
9186 doCheck = true;
87+
9288 checkPhase = ''
9389 runHook preCheck
94−
9590 ctest --output-on-failure -E smpi-replay-multiple
96−
9791 runHook postCheck
98− '';
92+ '';
93+
9994 enableParallelBuilding = true;
10095
101− meta = with stdenv.lib; {
96+ meta = {
10297 description = "Framework for the simulation of distributed applications";
103− longDescription =
104− '' SimGrid is a toolkit that provides core functionalities for the
105− simulation of distributed applications in heterogeneous distributed
106− environments. The specific goal of the project is to facilitate
107− research in the area of distributed and parallel application
108− scheduling on distributed computing platforms ranging from simple
109− network of workstations to Computational Grids.
110− '';
98+ longDescription = ''
99+ SimGrid is a toolkit that provides core functionalities for the
100+ simulation of distributed applications in heterogeneous distributed
101+ environments. The specific goal of the project is to facilitate
102+ research in the area of distributed and parallel application
103+ scheduling on distributed computing platforms ranging from simple
104+ network of workstations to Computational Grids.
105+ '';
111106 homepage = http://simgrid.gforge.inria.fr/;
107+ license = licenses.lgpl2Plus;
112108 maintainers = with maintainers; [ mickours ];
113109 platforms = platforms.x86_64;
114− license = licenses.lgpl2Plus;
115110 };
116111}