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