Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1# Older version of extlib for Haxe 4.0 and 4.1. 2# May be replaceable by the next extlib + extlib-base64 release. 3{ 4 stdenv, 5 lib, 6 fetchurl, 7 ocaml, 8 findlib, 9 cppo, 10 # De facto, option minimal seems to be the default. See the README. 11 minimal ? true, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "ocaml${ocaml.version}-extlib"; 16 version = "1.7.7"; 17 18 src = fetchurl { 19 url = "https://ygrek.org/p/release/ocaml-extlib/extlib-${version}.tar.gz"; 20 sha256 = "1sxmzc1mx3kg62j8kbk0dxkx8mkf1rn70h542cjzrziflznap0s1"; 21 }; 22 23 nativeBuildInputs = [ 24 ocaml 25 findlib 26 cppo 27 ]; 28 29 strictDeps = true; 30 31 createFindlibDestdir = true; 32 33 makeFlags = lib.optional minimal "minimal=1"; 34 35 meta = { 36 homepage = "https://github.com/ygrek/ocaml-extlib"; 37 description = "Enhancements to the OCaml Standard Library modules"; 38 license = lib.licenses.lgpl21Only; 39 inherit (ocaml.meta) platforms; 40 maintainers = [ lib.maintainers.sternenseemann ]; 41 broken = lib.versionAtLeast ocaml.version "4.12"; 42 }; 43}