at v206 25 lines 708 B view raw
1{stdenv, atd, yojson, menhir, easy-format, biniou, cppo, buildOcaml, fetchurl, which}: 2 3buildOcaml rec { 4 name = "atdgen"; 5 version = "1.6.0"; 6 7 src = fetchurl { 8 url = "https://github.com/mjambon/atdgen/archive/v${version}.tar.gz"; 9 sha256 = "1icdxgb7qqq1pcbfqi0ikryiwaljd594z3acyci8g3bnlq0yc7zn"; 10 }; 11 12 installPhase = '' 13 mkdir -p $out/bin 14 make PREFIX=$out install 15 ''; 16 17 buildInputs = [ which atd biniou yojson ]; 18 19 meta = with stdenv.lib; { 20 homepage = https://github.com/mjambon/atdgen; 21 description = "Generates optimized boilerplate OCaml code for JSON and Biniou IO from type definitions"; 22 license = licenses.bsd3; 23 maintainers = [ maintainers.jwilberding ]; 24 }; 25}