Update simgrid 3.19.1 -> 3.20 + parallel tests + enable darwin (#42721)

* simgrid: 3.19.1 -> 3.20

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/simgrid/versions.

These checks were done:

- built on NixOS
- /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/smpicc passed the binary check.
- /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/smpicxx passed the binary check.
- /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/smpirun passed the binary check.
- Warning: no invocation of /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/tesh had a zero exit code or showed the expected version
- /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/simgrid-colorizer passed the binary check.
- Warning: no invocation of /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/simgrid_update_xml had a zero exit code or showed the expected version
- /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/simgrid_convert_TI_traces passed the binary check.
- Warning: no invocation of /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/smpimain had a zero exit code or showed the expected version
- /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20/bin/graphicator passed the binary check.
- 6 of 9 passed binary check by having a zero exit code.
- 4 of 9 passed binary check by having the new version present in output.
- found 3.20 with grep in /nix/store/cvyi6hvgc9rvgrnp7c028xrlzbl7jzb9-simgrid-3.20
- directory tree listing: https://gist.github.com/edefc2f1a2e81412484edc2e45986e03
- du listing: https://gist.github.com/a44f7d57537e93152a8e6c569f8ed1ae

* simgrid: 3.19.1 -> 3.20 + add darwin

- Fix dependencies to enable build on darwin
- Add ctest flag to enable parallel testing

* Use simpler parallel testing logic

because it is already done in nixpkgs/pkgs/stdenv/generic/setup.sh

authored by Michael Mercier and committed by Matthew Bauer b8566965 22c15abe

+11 -9
+11 -9
pkgs/applications/science/misc/simgrid/default.nix
··· 1 - { stdenv, fetchFromGitHub, cmake, elfutils, perl, python3, boost, valgrind 2 # Optional requirements 3 # Lua 5.3 needed and not available now 4 #, luaSupport ? false, lua5 5 , fortranSupport ? false, gfortran 6 , buildDocumentation ? false, transfig, ghostscript, doxygen 7 , buildJavaBindings ? false, openjdk 8 - , modelCheckingSupport ? false, libunwind, libevent # Inside elfutils - , libelf, libevent, libdw 9 , debug ? false 10 , moreTests ? false 11 }: ··· 18 19 stdenv.mkDerivation rec { 20 name = "simgrid-${version}"; 21 - version = "3.19.1"; 22 23 src = fetchFromGitHub { 24 owner = "simgrid"; 25 repo = "simgrid"; 26 rev = "v${version}"; 27 - sha256 = "0vpgcp40xv20hcpslx5wz2mf2phaq41f7x8yr0bm7mknqd3zwxih"; 28 }; 29 30 - nativeBuildInputs = [ cmake perl elfutils python3 boost valgrind ] 31 ++ optionals fortranSupport [ gfortran ] 32 ++ optionals buildJavaBindings [ openjdk ] 33 ++ optionals buildDocumentation [ transfig ghostscript doxygen ] 34 - ++ optionals modelCheckingSupport [ libunwind libevent ]; 35 36 #buildInputs = optional luaSupport lua5; 37 ··· 83 ''; 84 85 doCheck = true; 86 - 87 checkPhase = '' 88 runHook preCheck 89 - ctest --output-on-failure -E smpi-replay-multiple 90 runHook postCheck 91 ''; 92 - 93 enableParallelBuilding = true; 94 95 meta = {
··· 1 + { stdenv, fetchFromGitHub, cmake, perl, python3, boost, valgrind 2 # Optional requirements 3 # Lua 5.3 needed and not available now 4 #, luaSupport ? false, lua5 5 , fortranSupport ? false, gfortran 6 , buildDocumentation ? false, transfig, ghostscript, doxygen 7 , buildJavaBindings ? false, openjdk 8 + , modelCheckingSupport ? false, libunwind, libevent, elfutils # Inside elfutils: libelf and libdw 9 , debug ? false 10 , moreTests ? false 11 }: ··· 18 19 stdenv.mkDerivation rec { 20 name = "simgrid-${version}"; 21 + version = "3.20"; 22 23 src = fetchFromGitHub { 24 owner = "simgrid"; 25 repo = "simgrid"; 26 rev = "v${version}"; 27 + sha256 = "0xb20qhvsah2dz2hvn850i3w9a5ghsbcx8vka2ap6xsdkxf593gy"; 28 }; 29 30 + nativeBuildInputs = [ cmake perl python3 boost valgrind ] 31 ++ optionals fortranSupport [ gfortran ] 32 ++ optionals buildJavaBindings [ openjdk ] 33 ++ optionals buildDocumentation [ transfig ghostscript doxygen ] 34 + ++ optionals modelCheckingSupport [ libunwind libevent elfutils ]; 35 36 #buildInputs = optional luaSupport lua5; 37 ··· 83 ''; 84 85 doCheck = true; 86 + 87 checkPhase = '' 88 runHook preCheck 89 + 90 + ctest -j $NIX_BUILD_CORES --output-on-failure -E smpi-replay-multiple 91 + 92 runHook postCheck 93 ''; 94 + 95 enableParallelBuilding = true; 96 97 meta = {