summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/bitstring/default.nix
blob: 4c612b177a7c9ea8e2c47957df6667173fd46e73 (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
{
  lib,
  fetchFromGitHub,
  buildDunePackage,
  stdlib-shims,
}:

buildDunePackage (finalAttrs: {
  pname = "bitstring";
  version = "4.1.1";

  duneVersion = "3";

  src = fetchFromGitHub {
    owner = "xguerin";
    repo = "bitstring";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-eO7/S9PoMybZPnQQ+q9qbqKpYO4Foc9OjW4uiwwNds8=";
  };

  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 ];
  };
})