summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/bitstring/default.nix
blob: 7e9ba518251c1ec5d748d0398b45155d00967e99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, buildOcaml, time, autoconf, automake }:

buildOcaml rec {
  name = "bitstring";
  version = "2.1.0";
  src = fetchurl {
    url = http://github.com/xguerin/bitstring/archive/v2.1.0.tar.gz;
    sha256 = "0miw4banfpmx4kxrckpqr57b1fcmsqdmspyjx6gqjd4kghm4l7xj";
  };

  patches = [ ./camlp4-git.patch ./srcdir.patch ];

  buildInputs = [time autoconf automake];
  doCheck = true;

  createFindlibDestdir = true;
  hasSharedObjects = true;

  preConfigure = "./bootstrap";

  meta = with stdenv.lib; {
    description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml";
    homepage = https://github.com/xguerin/bitstring;
    license = licenses.lgpl21Plus;
    maintainers = [ maintainers.maurer ];
  };
}