2021-04-04 00:30:47 +02:00
|
|
|
{ lib, menhir, easy-format, fetchurl, buildDunePackage, which, re, nixosTests }:
|
2017-06-27 20:10:25 +02:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "atd";
|
2021-02-18 22:36:28 +01:00
|
|
|
version = "2.2.1";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2018-08-15 10:45:42 +02:00
|
|
|
|
2019-02-22 17:59:41 +01:00
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
2021-02-18 22:36:28 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ahrefs/atd/releases/download/2.2.1/atd-2.2.1.tbz";
|
|
|
|
sha256 = "17jm79np69ixp53a4njxnlb1pg8sd1g47nm3nyki9clkc8d4qsyv";
|
2015-05-25 22:42:07 +02:00
|
|
|
};
|
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildInputs = [ which menhir ];
|
2021-02-18 22:36:28 +01:00
|
|
|
propagatedBuildInputs = [ easy-format re ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2018-08-15 10:45:42 +02:00
|
|
|
|
2021-04-04 00:30:47 +02:00
|
|
|
passthru.tests = {
|
|
|
|
smoke-test = nixosTests.atd;
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mjambon/atd";
|
2015-05-25 22:42:07 +02:00
|
|
|
description = "Syntax for cross-language type definitions";
|
|
|
|
license = licenses.bsd3;
|
2018-08-15 10:45:42 +02:00
|
|
|
maintainers = with maintainers; [ aij jwilberding ];
|
2015-05-25 22:42:07 +02:00
|
|
|
};
|
|
|
|
}
|