2015-06-01 18:41:50 +00:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, cstruct }:
|
2015-01-23 08:15:08 +00:00
|
|
|
|
2015-06-01 18:41:50 +00:00
|
|
|
let version = "0.2.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-06-01 18:41:50 +00:00
|
|
|
sha256 = "13vmpxwg5vb2qvkdqz37rx1ya19r9cp4dwylx8jj15mn77hpy7xg";
|
2015-01-23 08:15:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ];
|
2015-06-01 18:41:50 +00:00
|
|
|
propagatedBuildInputs = [ cstruct ];
|
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 ];
|
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|