about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/atd/default.nix
blob: de6ade61518a71444fc88eaef2ab3e11d8efd3e4 (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
{ lib, menhir, easy-format, fetchurl, buildDunePackage, which, re, nixosTests }:

buildDunePackage rec {
  pname = "atd";
  version = "2.2.1";

  useDune2 = true;

  minimumOCamlVersion = "4.02";

  src = fetchurl {
    url = "https://github.com/ahrefs/atd/releases/download/2.2.1/atd-2.2.1.tbz";
    sha256 = "17jm79np69ixp53a4njxnlb1pg8sd1g47nm3nyki9clkc8d4qsyv";
  };

  buildInputs = [ which menhir ];
  propagatedBuildInputs = [ easy-format re ];

  doCheck = true;

  passthru.tests = {
    smoke-test = nixosTests.atd;
  };

  meta = with lib; {
    homepage = "https://github.com/mjambon/atd";
    description = "Syntax for cross-language type definitions";
    license = licenses.bsd3;
    maintainers = with maintainers; [ aij jwilberding ];
  };
}