diff options
| author | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-03 14:31:31 +0200 |
|---|---|---|
| committer | Ghislain Vaillant <ghislain.vaillant@inria.fr> | 2026-08-03 14:31:31 +0200 |
| commit | 6687de69f745904a2a194dd8ecb8ac5c231e80dc (patch) | |
| tree | eb0f7f8090985baae8a4d65499495eae0d6ae53b | |
| parent | 2052f49d681a8f4ebd0147c523c922c68a7f6b75 (diff) | |
simulation: Add fmilib.
* guix-science/packages/simulation.scm (fmilib): New variable.
| -rw-r--r-- | guix-science/packages/simulation.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/guix-science/packages/simulation.scm b/guix-science/packages/simulation.scm index 8672548..f435d16 100644 --- a/guix-science/packages/simulation.scm +++ b/guix-science/packages/simulation.scm | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #:use-module (gnu packages boost) | 13 | #:use-module (gnu packages boost) |
| 14 | #:use-module (gnu packages check) | 14 | #:use-module (gnu packages check) |
| 15 | #:use-module (gnu packages cpp) | 15 | #:use-module (gnu packages cpp) |
| 16 | #:use-module (gnu packages compression) | ||
| 16 | #:use-module (gnu packages gcc) | 17 | #:use-module (gnu packages gcc) |
| 17 | #:use-module (gnu packages networking) | 18 | #:use-module (gnu packages networking) |
| 18 | #:use-module (gnu packages perl) | 19 | #:use-module (gnu packages perl) |
| @@ -62,6 +63,38 @@ energy consumption (DVFS, shutdown…) or I/O data movements. | |||
| 62 | ;; LGPL version 3 only. | 63 | ;; LGPL version 3 only. |
| 63 | (license license:lgpl3))) | 64 | (license license:lgpl3))) |
| 64 | 65 | ||
| 66 | (define-public fmilib | ||
| 67 | (package | ||
| 68 | (name "fmilib") | ||
| 69 | (version "3.0.4") | ||
| 70 | (source | ||
| 71 | (origin | ||
| 72 | (method git-fetch) | ||
| 73 | (uri (git-reference | ||
| 74 | (url "https://github.com/modelon-community/fmi-library") | ||
| 75 | (commit version))) | ||
| 76 | (file-name (git-file-name name version)) | ||
| 77 | (sha256 | ||
| 78 | (base32 "1m8jb6ifzvszangqxwxz0xshqbrq0ryx6qny47pbdm4hsa6v221j")) | ||
| 79 | (modules '((guix build utils))) | ||
| 80 | (snippet | ||
| 81 | #~(for-each delete-file-recursively | ||
| 82 | (list "ThirdParty/Expat" "ThirdParty/Zlib" | ||
| 83 | "ThirdParty/c99_snprintf"))))) | ||
| 84 | (build-system cmake-build-system) | ||
| 85 | (arguments | ||
| 86 | (list | ||
| 87 | #:configure-flags | ||
| 88 | #~(list "-DFMILIB_EXTERNAL_LIBS:BOOL=ON"))) | ||
| 89 | (inputs (list expat minizip zlib)) | ||
| 90 | (home-page "https://github.com/modelon-community/fmi-library") | ||
| 91 | (synopsis "C library for importing FMUs") | ||
| 92 | (description | ||
| 93 | "The FMI library is intended as a foundation for applications interfacing | ||
| 94 | @acronym{FMUs, Functional Mockup Units} that follow FMI Standard. This | ||
| 95 | version of the library supports the FMI 1.0, FMI 2.0 and FMI 3.0 standards.") | ||
| 96 | (license license:bsd-3))) | ||
| 97 | |||
| 65 | (define-public simgrid | 98 | (define-public simgrid |
| 66 | (package | 99 | (package |
| 67 | (name "simgrid") | 100 | (name "simgrid") |
