1 { lib, fetchzip, buildDunePackage, ocaml }:
3 lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
4 "nonstd is not available for OCaml ≥ 5.0"
10 minimalOCamlVersion = "4.02";
13 url = "https://bitbucket.org/smondet/${pname}/get/${pname}.${version}.tar.gz";
14 sha256 = "0ccjwcriwm8fv29ij1cnbc9win054kb6pfga3ygzdbjpjb778j46";
17 duneVersion = if lib.versionAtLeast ocaml.version "4.12" then "2" else "1";
18 postPatch = lib.optionalString (duneVersion != "1") "dune upgrade";
22 homepage = "https://bitbucket.org/smondet/nonstd";
23 description = "Non-standard mini-library";
24 license = licenses.isc;
25 maintainers = [ maintainers.alexfmpe ];