at release-16.03-start 32 lines 831 B view raw
1{ stdenv, fetchzip, ocaml, findlib }: 2 3stdenv.mkDerivation { 4 5 name = "ocaml-csv-1.4.2"; 6 7 src = fetchzip { 8 url = https://github.com/Chris00/ocaml-csv/releases/download/1.4.2/csv-1.4.2.tar.gz; 9 sha256 = "05s8py2qr3889c72g1q07r15pzch3j66xdphxi2sd93h5lvnpi4j"; 10 }; 11 12 buildInputs = [ ocaml findlib ]; 13 14 createFindlibDestdir = true; 15 16 configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests"; 17 18 buildPhase = "ocaml setup.ml -build"; 19 20 doCheck = true; 21 checkPhase = "ocaml setup.ml -test"; 22 23 installPhase = "ocaml setup.ml -install"; 24 25 meta = with stdenv.lib; { 26 description = "A pure OCaml library to read and write CSV files"; 27 homepage = https://github.com/Chris00/ocaml-csv; 28 license = licenses.lgpl21; 29 maintainers = [ maintainers.vbgl ]; 30 platforms = ocaml.meta.platforms; 31 }; 32}