1{
2 lib,
3 stdenv,
4 buildDunePackage,
5 fetchFromGitHub,
6 menhir,
7 menhirLib,
8}:
9
10buildDunePackage rec {
11 pname = "zelus";
12 version = "2.2";
13
14 minimalOCamlVersion = "4.08.1";
15
16 src = fetchFromGitHub {
17 owner = "INRIA";
18 repo = "zelus";
19 rev = version;
20 hash = "sha256-NcGX343LProADtzJwlq1kmihLaya1giY6xv9ScvdgTA=";
21 };
22
23 # ./configure: cannot execute: required file not found
24 postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
25 patchShebangs configure
26 '';
27
28 nativeBuildInputs = [
29 menhir
30 ];
31
32 buildInputs = [
33 menhirLib
34 ];
35
36 meta = with lib; {
37 description = "Synchronous language with ODEs";
38 homepage = "https://zelus.di.ens.fr";
39 license = licenses.inria-zelus;
40 mainProgram = "zeluc";
41 maintainers = with maintainers; [ wegank ];
42 };
43}