mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 17:44:44 +00:00
openmodelica.omsimulator: fix build
This commit is contained in:
parent
87857cb465
commit
e103e932c2
@ -5,6 +5,7 @@
|
|||||||
, libxml2
|
, libxml2
|
||||||
, openmodelica
|
, openmodelica
|
||||||
, mkOpenModelicaDerivation
|
, mkOpenModelicaDerivation
|
||||||
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkOpenModelicaDerivation rec {
|
mkOpenModelicaDerivation rec {
|
||||||
@ -12,10 +13,23 @@ mkOpenModelicaDerivation rec {
|
|||||||
omdir = "OMSimulator";
|
omdir = "OMSimulator";
|
||||||
omdeps = [ openmodelica.omcompiler ];
|
omdeps = [ openmodelica.omcompiler ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/OpenModelica/OMSimulator/commit/5ef06e251d639a0224adc205cdbfa1f99bf9a956.patch";
|
||||||
|
stripLen = 1;
|
||||||
|
extraPrefix = "OMSimulator/";
|
||||||
|
hash = "sha256-hLsS6TNEjddm2o2Optnf8n6hh14up9bWJBoztNmisH0=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ readline libxml2 boost ];
|
buildInputs = [ readline libxml2 boost ];
|
||||||
|
|
||||||
|
env.CFLAGS = toString [
|
||||||
|
"-Wno-error=implicit-function-declaration"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The OpenModelica FMI & SSP-based co-simulation environment";
|
description = "The OpenModelica FMI & SSP-based co-simulation environment";
|
||||||
homepage = "https://openmodelica.org";
|
homepage = "https://openmodelica.org";
|
||||||
|
Loading…
Reference in New Issue
Block a user