1{ stdenv, fetchzip, buildOcaml, time, autoconf, automake }:
2
3buildOcaml rec {
4 name = "bitstring";
5 version = "f1673f8";
6 src = fetchzip {
7 url = https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/bitstring/source-archive.zip;
8 sha256 = "03343yggwp3y483zj5axaalxlnl698xrjiv3hmd4c2s05g53iwas";
9 };
10
11 patches = [ ./camlp4-git.patch ./meta.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}