mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 03:39:59 +00:00
fmi-reference-fmus: 0.0.39 -> 0.0.40 (#549512)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user