1{stdenv, menhir, easy-format, buildOcaml, fetchurl, which}:
2
3buildOcaml rec {
4 name = "atd";
5 version = "1.1.2";
6
7 src = fetchurl {
8 url = "https://github.com/mjambon/atd/archive/v${version}.tar.gz";
9 sha256 = "0ef10c63192aed75e9a4274e89c5f9ca27efb1ef230d9949eda53ad4a9a37291";
10 };
11
12 installPhase = ''
13 mkdir -p $out/bin
14 make PREFIX=$out install
15 '';
16
17 buildInputs = [ which ];
18 propagatedBuildInputs = [ menhir easy-format ];
19
20 meta = with stdenv.lib; {
21 homepage = https://github.com/mjambon/atd;
22 description = "Syntax for cross-language type definitions";
23 license = licenses.bsd3;
24 maintainers = [ maintainers.jwilberding ];
25 };
26}