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