2017-01-25 06:51:05 +00:00
|
|
|
{ stdenv, fetchurl, buildOcaml, time, autoconf, automake }:
|
2016-07-19 09:04:32 +01:00
|
|
|
|
|
|
|
buildOcaml rec {
|
|
|
|
name = "bitstring";
|
2018-03-21 03:29:56 +00:00
|
|
|
version = "2.1.1";
|
2017-01-25 06:51:05 +00:00
|
|
|
src = fetchurl {
|
2018-03-21 03:29:56 +00:00
|
|
|
url = http://github.com/xguerin/bitstring/archive/v2.1.1.tar.gz;
|
|
|
|
sha256 = "0vy8ibrxccii1jbsk5q6yh1kxjigqvi7lhhcmizvd5gfhf7mfyc8";
|
2016-07-19 09:04:32 +01:00
|
|
|
};
|
|
|
|
|
2017-01-25 06:51:05 +00:00
|
|
|
patches = [ ./camlp4-git.patch ./srcdir.patch ];
|
2016-07-19 09:04:32 +01:00
|
|
|
|
|
|
|
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";
|
2017-10-27 00:44:19 +01:00
|
|
|
homepage = https://github.com/xguerin/bitstring;
|
2016-07-19 09:04:32 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
};
|
|
|
|
}
|