blob: 791620a77c0891d12d71a7349d4a7f35794e2d78 (
plain)
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
28
29
30
31
32
33
|
{
lib,
fetchFromGitHub,
ocaml,
buildDunePackage,
stdlib-shims,
}:
buildDunePackage (finalAttrs: {
pname = "bitstring";
version = if lib.versionAtLeast ocaml.version "5.3" then "5.0.2" else "4.1.1";
src = fetchFromGitHub {
owner = "xguerin";
repo = "bitstring";
tag = "v${finalAttrs.version}";
hash =
{
"5.0.2" = "sha256-MN16b37EM5NIZcvd59Y9Bd+YgcM62RdhrgCskd21tSg=";
"4.1.1" = "sha256-eO7/S9PoMybZPnQQ+q9qbqKpYO4Foc9OjW4uiwwNds8=";
}
."${finalAttrs.version}";
};
propagatedBuildInputs = [ stdlib-shims ];
meta = {
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 = lib.licenses.lgpl21Plus;
maintainers = [ lib.maintainers.maurer ];
};
})
|