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
36 lines
788 B
Nix
36 lines
788 B
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
fetchFromGitHub,
|
|
stdlib-shims,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "bdd";
|
|
version = "0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "backtracking";
|
|
repo = "ocaml-bdd";
|
|
tag = version;
|
|
hash = "sha256-bhgKpo7gGkjbI75pzckfQulZnTstj6G5QcErLgIGneU=";
|
|
};
|
|
|
|
# Fix build with OCaml 4.02
|
|
postPatch = ''
|
|
substituteInPlace lib/bdd.ml \
|
|
--replace-fail "Buffer.truncate Format.stdbuf 0;" "Buffer.clear Format.stdbuf;"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
stdlib-shims
|
|
];
|
|
|
|
meta = {
|
|
description = "Quick implementation of a Binary Decision Diagrams (BDD) library for OCaml";
|
|
homepage = "https://github.com/backtracking/ocaml-bdd";
|
|
license = lib.licenses.lgpl21Only;
|
|
maintainers = with lib.maintainers; [ wegank ];
|
|
};
|
|
}
|