depot/third_party/nixpkgs/pkgs/development/ocaml-modules/atd/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

31 lines
759 B
Nix

{ 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 ];
};
}