depot/third_party/nixpkgs/pkgs/development/ocaml-modules/bdd/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

36 lines
848 B
Nix

{ lib
, buildDunePackage
, fetchFromGitHub
, stdlib-shims
}:
buildDunePackage {
pname = "bdd";
version = "unstable-2022-07-14";
duneVersion = "3";
src = fetchFromGitHub {
owner = "backtracking";
repo = "ocaml-bdd";
rev = "6d1b1d3c24e5784b87e599a00230ce652acb2dcc";
hash = "sha256-3mJZlAFQsI7AgrNQOe6N94CDfX5gXYqQBooV0jcoYEA=";
};
# Fix build with OCaml 4.02
postPatch = ''
substituteInPlace lib/bdd.ml \
--replace "Buffer.truncate Format.stdbuf 0;" "Buffer.clear Format.stdbuf;"
'';
propagatedBuildInputs = [
stdlib-shims
];
meta = with lib; {
description = "Quick implementation of a Binary Decision Diagrams (BDD) library for OCaml";
homepage = "https://github.com/backtracking/ocaml-bdd";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ wegank ];
};
}