1{
2 lib,
3 jre8,
4 qmake,
5 qtbase,
6 qttools,
7 qtwebkit,
8 qtxmlpatterns,
9 binutils,
10 wrapQtAppsHook,
11 openmodelica,
12 openscenegraph,
13 mkOpenModelicaDerivation,
14}:
15with openmodelica;
16mkOpenModelicaDerivation {
17 pname = "omedit";
18 omdir = "OMEdit";
19 omdeps = [
20 omcompiler
21 omplot
22 omparser
23 omsimulator
24 ];
25 omautoconf = true;
26
27 nativeBuildInputs = [
28 jre8
29 qmake
30 qtbase
31 qttools
32 wrapQtAppsHook
33 ];
34
35 buildInputs = [
36 qtwebkit
37 openscenegraph
38 qtxmlpatterns
39 binutils
40 ];
41
42 postPatch = ''
43 sed -i ''$(find -name qmake.m4) -e '/^\s*LRELEASE=/ s|LRELEASE=.*$|LRELEASE=${lib.getDev qttools}/bin/lrelease|'
44 '';
45
46 dontUseQmakeConfigure = true;
47 QMAKESPEC = "linux-clang";
48
49 meta = with lib; {
50 description = "Modelica connection editor for OpenModelica";
51 homepage = "https://openmodelica.org";
52 license = licenses.gpl3Only;
53 maintainers = with maintainers; [
54 balodja
55 smironov
56 ];
57 platforms = platforms.linux;
58 };
59}