2018-11-05 11:21:46 +01:00
|
|
|
{ stdenv, fetchFromGitHub, buildDunePackage, ppx_tools_versioned, ounit }:
|
2016-07-19 10:04:32 +02:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "bitstring";
|
2018-05-13 17:28:22 +02:00
|
|
|
version = "3.0.0";
|
2018-11-05 11:21:46 +01:00
|
|
|
|
2018-05-13 17:28:22 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xguerin";
|
2018-11-05 11:21:46 +01:00
|
|
|
repo = pname;
|
2018-05-13 17:28:22 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0r49qax7as48jgknzaq6p9rbpmrvnmlic713wzz5bj60j5h0396f";
|
2016-07-19 10:04:32 +02:00
|
|
|
};
|
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildInputs = [ ppx_tools_versioned ounit ];
|
2018-05-13 17:28:22 +02:00
|
|
|
doCheck = true;
|
2016-07-19 10:04:32 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml";
|
2017-10-27 01:44:19 +02:00
|
|
|
homepage = https://github.com/xguerin/bitstring;
|
2016-07-19 10:04:32 +02:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
};
|
|
|
|
}
|