1{ stdenv, fetchurl, buildOcaml, time, autoconf, automake }:
2
3buildOcaml rec {
4 name = "bitstring";
5 version = "2.1.0";
6 src = fetchurl {
7 url = http://github.com/xguerin/bitstring/archive/v2.1.0.tar.gz;
8 sha256 = "0miw4banfpmx4kxrckpqr57b1fcmsqdmspyjx6gqjd4kghm4l7xj";
9 };
10
11 patches = [ ./camlp4-git.patch ./srcdir.patch ];
12
13 buildInputs = [time autoconf automake];
14 doCheck = true;
15
16 createFindlibDestdir = true;
17 hasSharedObjects = true;
18
19 preConfigure = "./bootstrap";
20
21 meta = with stdenv.lib; {
22 description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml";
23 homepage = http://code.google.com/p/bitstring/;
24 license = licenses.lgpl21Plus;
25 maintainers = [ maintainers.maurer ];
26 };
27}