Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
981 B
Nix
49 lines
981 B
Nix
{
|
|
lib,
|
|
pkg-config,
|
|
boost,
|
|
readline,
|
|
libxml2,
|
|
openmodelica,
|
|
mkOpenModelicaDerivation,
|
|
fetchpatch,
|
|
}:
|
|
|
|
mkOpenModelicaDerivation {
|
|
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;
|
|
};
|
|
}
|