push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
{
lib,
fetchFromGitHub,
buildDunePackage,
stdlib-shims,
}:
buildDunePackage rec {
pname = "bitstring";
version = "4.1.1";
duneVersion = "3";
src = fetchFromGitHub {
owner = "xguerin";
repo = pname;
rev = "v${version}";
sha256 = "sha256-eO7/S9PoMybZPnQQ+q9qbqKpYO4Foc9OjW4uiwwNds8=";
};
propagatedBuildInputs = [ stdlib-shims ];
meta = with lib; {
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 = licenses.lgpl21Plus;
maintainers = [ maintainers.maurer ];
};
}

View File

@@ -0,0 +1,35 @@
{
lib,
buildDunePackage,
fetchpatch,
ocaml,
bitstring,
ppxlib,
ounit,
}:
if lib.versionOlder ppxlib.version "0.18.0" then
throw "ppx_bitstring is not available with ppxlib-${ppxlib.version}"
else
buildDunePackage {
pname = "ppx_bitstring";
inherit (bitstring) version src;
patches = lib.optional (lib.versionAtLeast ppxlib.version "0.36") (fetchpatch {
url = "https://github.com/xguerin/bitstring/commit/b42d4924cbb5ec5fd5309e6807852b63f456f35d.patch";
hash = "sha256-wtpSnGOzIUTmB3LhyHGopecy7F/5SYFOwaR6eReV+6g=";
});
buildInputs = [
bitstring
ppxlib
];
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ ounit ];
meta = bitstring.meta // {
description = "Bitstrings and bitstring matching for OCaml - PPX extension";
};
}