2017-03-04 05:33:30 +00:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, cstruct }:
|
2015-01-23 08:15:08 +00:00
|
|
|
|
2015-12-15 21:02:15 +00:00
|
|
|
let version = "1.0.0"; in
|
2015-01-23 08:15:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-hex-${version}";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/mirage/ocaml-hex/archive/${version}.tar.gz";
|
2015-12-15 21:02:15 +00:00
|
|
|
sha256 = "0g4cq4bsksga15fa5ln083gkglawknbnhi2s4k8yk0yi5xngvwm4";
|
2015-01-23 08:15:08 +00:00
|
|
|
};
|
|
|
|
|
2017-03-04 05:33:30 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2015-06-01 18:41:50 +00:00
|
|
|
propagatedBuildInputs = [ cstruct ];
|
2015-12-15 21:02:15 +00:00
|
|
|
configureFlags = "--enable-tests";
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
2015-01-23 08:15:08 +00:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Mininal OCaml library providing hexadecimal converters";
|
|
|
|
homepage = https://github.com/mirage/ocaml-hex;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2015-01-23 08:15:08 +00:00
|
|
|
};
|
|
|
|
}
|