7 lib.throwIf (lib.versionAtLeast ocaml.version "5.2")
8 "stdcompat is not available for OCaml ${ocaml.version}"
10 buildDunePackage rec {
15 url = "https://github.com/thierry-martinez/stdcompat/releases/download/v${version}/stdcompat-${version}.tar.gz";
16 sha256 = "sha256-DKQGd4nnIN6SPls6hcA/2Jvc7ivYNpeMU6rYsVc1ClU=";
19 # Otherwise ./configure script will run and create files conflicting with dune.
23 homepage = "https://github.com/thierry-martinez/stdcompat";
24 license = lib.licenses.bsd2;
25 maintainers = [ lib.maintainers.vbgl ];