at 17.09-beta 27 lines 794 B view raw
1{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, cstruct }: 2 3let version = "1.0.0"; in 4 5stdenv.mkDerivation { 6 name = "ocaml-hex-${version}"; 7 8 src = fetchzip { 9 url = "https://github.com/mirage/ocaml-hex/archive/${version}.tar.gz"; 10 sha256 = "0g4cq4bsksga15fa5ln083gkglawknbnhi2s4k8yk0yi5xngvwm4"; 11 }; 12 13 buildInputs = [ ocaml findlib ocamlbuild ]; 14 propagatedBuildInputs = [ cstruct ]; 15 configureFlags = "--enable-tests"; 16 doCheck = true; 17 checkTarget = "test"; 18 createFindlibDestdir = true; 19 20 meta = { 21 description = "Mininal OCaml library providing hexadecimal converters"; 22 homepage = https://github.com/mirage/ocaml-hex; 23 license = stdenv.lib.licenses.isc; 24 maintainers = with stdenv.lib.maintainers; [ vbgl ]; 25 platforms = ocaml.meta.platforms or []; 26 }; 27}