nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildDunePackage,
5 stdlib-shims,
6}:
7
8buildDunePackage (finalAttrs: {
9 pname = "bitstring";
10 version = "4.1.1";
11
12 duneVersion = "3";
13
14 src = fetchFromGitHub {
15 owner = "xguerin";
16 repo = "bitstring";
17 rev = "v${finalAttrs.version}";
18 sha256 = "sha256-eO7/S9PoMybZPnQQ+q9qbqKpYO4Foc9OjW4uiwwNds8=";
19 };
20
21 propagatedBuildInputs = [ stdlib-shims ];
22
23 meta = {
24 description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml";
25 homepage = "https://github.com/xguerin/bitstring";
26 license = lib.licenses.lgpl21Plus;
27 maintainers = [ lib.maintainers.maurer ];
28 };
29})