fmi-reference-fmus: 0.0.39 -> 0.0.40 (#549512)

This commit is contained in:
Jo
2026-08-07 14:43:03 +00:00
committed by GitHub

View File

@@ -10,26 +10,23 @@
# C.f. <https://fmi-standard.org/>
assert lib.asserts.assertMsg (
FMIVersion >= 1 && FMIVersion <= 3
) "FMIVersion must be a valid FMI specification standard: 1, 2, or 3; not ${toString FMIVersion}";
FMIVersion >= 2 && FMIVersion <= 3
) "FMIVersion must be a valid FMI specification standard of: 2 or 3; not ${toString FMIVersion}";
# NB: this derivation does not package the fmusim executables, only
# the FMUs.
stdenv.mkDerivation (finalAttrs: {
pname = "reference-fmus";
version = "0.0.39";
version = "0.0.40";
src = fetchFromGitHub {
owner = "modelica";
repo = "reference-fmus";
rev = "v${finalAttrs.version}";
hash = "sha256-3bjqfEyPhqVrJOHHhniacyUAo82InCd6LLx3tyC8DYg=";
hash = "sha256-GRyvfOncJ6PPQpqxFELlIEZCijcxnSAzbPilmMEwmJQ=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DFMI_VERSION=${toString FMIVersion}"
(lib.cmakeBool "WITH_FMUSIM" false)
];
env = lib.optionalAttrs (FMIVersion == 3) {