1{ stdenv, fetchFromGitHub, buildDunePackage, ppx_tools_versioned, ounit }:
2
3buildDunePackage rec {
4 pname = "bitstring";
5 version = "3.0.0";
6
7 src = fetchFromGitHub {
8 owner = "xguerin";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "0r49qax7as48jgknzaq6p9rbpmrvnmlic713wzz5bj60j5h0396f";
12 };
13
14 buildInputs = [ ppx_tools_versioned ounit ];
15 doCheck = true;
16
17 meta = with stdenv.lib; {
18 description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml";
19 homepage = https://github.com/xguerin/bitstring;
20 license = licenses.lgpl21Plus;
21 maintainers = [ maintainers.maurer ];
22 };
23}