2015-06-10 17:05:23 +01:00
|
|
|
{stdenv, fetchurl, buildOcaml, time}:
|
|
|
|
|
|
|
|
buildOcaml rec {
|
|
|
|
name = "bitstring";
|
|
|
|
version = "2.0.4";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://bitstring.googlecode.com/files/ocaml-bitstring-${version}.tar.gz";
|
|
|
|
sha256 = "0mapzn2ls5qcrzjm1az50lqjj76ldkmz4fbv2phc9w6smab50qy5";
|
|
|
|
};
|
|
|
|
|
2015-09-01 05:43:37 +01:00
|
|
|
patches = [ ./camlp4.patch ./meta.patch ./srcdir.patch ];
|
2015-06-10 17:05:23 +01:00
|
|
|
|
|
|
|
buildInputs = [time];
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
hasSharedObjects = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-02-27 17:24:00 +00:00
|
|
|
description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml";
|
2015-06-10 17:05:23 +01:00
|
|
|
homepage = http://code.google.com/p/bitstring/;
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
};
|
|
|
|
}
|