My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/ocaml-modules/atd/default.nix

30 lines
795 B

{ stdenv, menhir, easy-format, ocaml, findlib, fetchFromGitHub, dune, which, biniou, yojson }:
stdenv.mkDerivation rec {
version = "2.0.0";
name = "ocaml${ocaml.version}-atd-${version}";
src = fetchFromGitHub {
owner = "mjambon";
repo = "atd";
rev = version;
sha256 = "0alzmk97rxg7s6irs9lvf89dy9n3r769my5n4j9p9qyigcdgjaia";
};
createFindlibDestdir = true;
buildInputs = [ which dune ocaml findlib menhir ];
propagatedBuildInputs = [ easy-format biniou yojson ];
buildPhase = "jbuilder build";
inherit (dune) installPhase;
meta = with stdenv.lib; {
homepage = https://github.com/mjambon/atd;
description = "Syntax for cross-language type definitions";
license = licenses.bsd3;
maintainers = with maintainers; [ aij jwilberding ];
};
}