This repository has been archived by the owner on May 31, 2021. It is now read-only.
/
dev.nix
79 lines (65 loc) · 1.8 KB
/
dev.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{ stdenv, fetchurl, cmake, simgrid, boost, gmp, rapidjson, openssl, git,
redox, hiredis, libev, zeromq, docopt_cpp, pugixml, intervalset,
installTestsDeps? false, batsched, python, pythonPackages, batexpe,
redis, coreutils, netcat-gnu, psmisc, which, doxygen, graphviz
}:
stdenv.mkDerivation rec {
name = "batsim-${version}";
version = "3.0-dev";
src = fetchTarball "https://gitlab.inria.fr/batsim/batsim/repository/master/archive.tar.gz";
#src = fetchurl {
# url = "https://gitlab.inria.fr/batsim/batsim/repository/v${version}/archive.tar.gz";
# sha256 = "1r5yfj984xbzlgv5zzai2w19z174s7j52nkdzfsgfqqrzzz5g3r2";
#};
nativeBuildInputs= [
simgrid
intervalset
boost
gmp
rapidjson
openssl
redox
hiredis
libev
zeromq
docopt_cpp
pugixml
cmake
];
buildInputs = stdenv.lib.optional installTestsDeps [
pythonPackages.pandas
netcat-gnu
coreutils
psmisc
which
batexpe
batsched
redis
doxygen
graphviz
];
cmakeFlags = ["-DCMAKE_BUILD_TYPE=Debug"];
enableParallelBuilding = true;
# Remove previous builds to avoid CMake complain
preConfigure = "rm -rf ./build/*";
# Disable checks by default to enable installing broken version
doCheck = false;
preCheck = ''
# Patch tests script she bang
patchShebangs ../test
'';
checkPhase = ''
runHook preCheck
${stdenv.shell} ../ci/run-tests.bash
${stdenv.shell} ../ci/run-unittests.bash
'';
meta = with stdenv.lib; {
description = "A batch scheduler simulator with a focus on realism that facilitates comparison.";
homepage = "https://github.com/oar-team/batsim";
platforms = platforms.unix;
longDescription = ''
Batsim is a Batch Scheduler Simulator that uses SimGrid as the
platform simulator.
'';
};
}