generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ stdenv, lib, fetchFromGitLab | ||
, meson, ninja, pkgconfig | ||
, simgrid, intervalset, boost, rapidjson, redox, zeromq, docopt_cpp, pugixml | ||
, debug ? false | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "batsim"; | ||
version = "4.2.0"; | ||
|
||
src = fetchFromGitLab { | ||
domain = "framagit.org"; | ||
owner = "batsim"; | ||
repo = pname; | ||
rev = "v${version}"; | ||
sha256 = "sha256-RsjvPhuJL6S804/BZGpzl9qkCujWJxWK0isD4osekMI="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
meson | ||
ninja | ||
pkgconfig | ||
]; | ||
# runtimeDeps is used to generate multi-layered docker contained | ||
runtimeDeps = [ | ||
simgrid | ||
intervalset | ||
rapidjson | ||
redox | ||
zeromq | ||
docopt_cpp | ||
pugixml | ||
]; | ||
buildInputs = [ | ||
boost | ||
] ++ runtimeDeps; | ||
|
||
ninjaFlags = [ "-v" ]; | ||
enableParallelBuilding = true; | ||
|
||
mesonBuildType = if debug then "debug" else "release"; | ||
CXXFLAGS = if debug then "-O0" else ""; | ||
hardeningDisable = if debug then [ "fortify" ] else []; | ||
dontStrip = debug; | ||
|
||
meta = with lib; { | ||
description = "An infrastructure simulator that focuses on resource management techniques."; | ||
homepage = "https://framagit.org/batsim/batsim"; | ||
platforms = platforms.all; | ||
license = licenses.lgpl3; | ||
broken = false; | ||
|
||
longDescription = '' | ||
Batsim is an infrastructure simulator that enables the study of resource management techniques. | ||
''; | ||
}; | ||
} |