Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 ocaml, 7 findlib, 8 curl, 9 lwt, 10 lwt_ppx, 11}: 12if lib.versionOlder ocaml.version "4.04" then 13 throw "ocurl is not available for OCaml ${ocaml.version}" 14else 15 stdenv.mkDerivation rec { 16 pname = "ocurl"; 17 version = "0.9.2"; 18 19 src = fetchurl { 20 url = "https://github.com/ygrek/ocurl/releases/download/${version}/ocurl-${version}.tar.gz"; 21 sha256 = "sha256-4DWXGMh02s1VwLWW5d7h0jtMOUubWmBPGm1hghfWd2M="; 22 }; 23 24 nativeBuildInputs = [ 25 pkg-config 26 ocaml 27 findlib 28 ]; 29 propagatedBuildInputs = [ 30 curl 31 lwt 32 lwt_ppx 33 ]; 34 35 strictDeps = true; 36 37 createFindlibDestdir = true; 38 meta = { 39 description = "OCaml bindings to libcurl"; 40 license = lib.licenses.mit; 41 homepage = "http://ygrek.org.ua/p/ocurl/"; 42 maintainers = with lib.maintainers; [ 43 dandellion 44 bennofs 45 ]; 46 platforms = ocaml.meta.platforms or [ ]; 47 }; 48 }