blob: 9e28e3f21f26da74eab6c65d555a333c130b5e71 (
plain) (
blame)
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
|
{ lib
, pkg-config
, boost
, readline
, libxml2
, openmodelica
, mkOpenModelicaDerivation
, fetchpatch
}:
mkOpenModelicaDerivation rec {
pname = "omsimulator";
omdir = "OMSimulator";
omdeps = [ openmodelica.omcompiler ];
patches = [
(fetchpatch {
url = "https://github.com/OpenModelica/OMSimulator/commit/5ef06e251d639a0224adc205cdbfa1f99bf9a956.patch";
stripLen = 1;
extraPrefix = "OMSimulator/";
hash = "sha256-hLsS6TNEjddm2o2Optnf8n6hh14up9bWJBoztNmisH0=";
})
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ readline libxml2 boost ];
env.CFLAGS = toString [
"-Wno-error=implicit-function-declaration"
];
meta = with lib; {
description = "OpenModelica FMI & SSP-based co-simulation environment";
homepage = "https://openmodelica.org";
license = licenses.gpl3Only;
maintainers = with maintainers; [ balodja smironov ];
platforms = platforms.linux;
};
}
|