1{
2 lib,
3 bzip2,
4 cmake,
5 eigen,
6 fetchFromGitHub,
7 ffmpeg,
8 fox_1_6,
9 gdal,
10 git,
11 gl2ps,
12 gpp,
13 gtest,
14 jdk,
15 libGL,
16 libGLU,
17 libX11,
18 libjpeg,
19 libpng,
20 libtiff,
21 libxcrypt,
22 openscenegraph,
23 proj,
24 python3,
25 python3Packages,
26 stdenv,
27 swig,
28 xercesc,
29 xorg,
30 zlib,
31}:
32
33stdenv.mkDerivation rec {
34 pname = "sumo";
35 version = "1.23.1";
36
37 src = fetchFromGitHub {
38 owner = "eclipse";
39 repo = "sumo";
40 rev = "v${lib.replaceStrings [ "." ] [ "_" ] version}";
41 hash = "sha256-yXXOCvlHAzGmNQeXyWQtmq1UdkQ6qt4L9noUii/voP4=";
42 fetchSubmodules = true;
43 };
44
45 nativeBuildInputs = [
46 cmake
47 git
48 swig
49 ];
50
51 buildInputs = [
52 bzip2
53 eigen
54 ffmpeg
55 fox_1_6
56 gdal
57 gl2ps
58 gpp
59 gtest
60 jdk
61 libGL
62 libGLU
63 libjpeg
64 libpng
65 libtiff
66 libxcrypt
67 openscenegraph
68 proj
69 python3Packages.setuptools
70 xercesc
71 zlib
72 python3
73 ]
74 ++ (with xorg; [
75 libX11
76 libXcursor
77 libXext
78 libXfixes
79 libXft
80 libXrandr
81 libXrender
82 ]);
83
84 meta = with lib; {
85 description = "SUMO traffic simulator";
86 longDescription = ''
87 Eclipse SUMO is an open source, highly
88 portable, microscopic and continuous traffic simulation package
89 designed to handle large networks. It allows for intermodal
90 simulation including pedestrians and comes with a large set of
91 tools for scenario creation.
92 '';
93 homepage = "https://github.com/eclipse/sumo";
94 license = licenses.epl20;
95 maintainers = with maintainers; [ ];
96 };
97}