about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/zelus/default.nix
blob: d326e234c0d027a07862f7c74d1a1de70d7c8e01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib
, stdenv
, buildDunePackage
, fetchFromGitHub
, menhir
, menhirLib
}:

buildDunePackage rec {
  pname = "zelus";
  version = "2.2";

  minimalOCamlVersion = "4.08.1";

  src = fetchFromGitHub {
    owner = "INRIA";
    repo = "zelus";
    rev = version;
    hash = "sha256-NcGX343LProADtzJwlq1kmihLaya1giY6xv9ScvdgTA=";
  };

  # ./configure: cannot execute: required file not found
  postPatch = lib.optionalString stdenv.isLinux ''
    patchShebangs configure
  '';

  nativeBuildInputs = [
    menhir
  ];

  buildInputs = [
    menhirLib
  ];

  meta = with lib; {
    description = "A synchronous language with ODEs";
    homepage = "https://zelus.di.ens.fr";
    license = licenses.inria-zelus;
    mainProgram = "zeluc";
    maintainers = with maintainers; [ wegank ];
  };
}