Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 27 lines 848 B view raw
1{ lib, stdenv, fetchurl, pkg-config, ocaml, findlib, curl, lwt, lwt_ppx }: 2if lib.versionOlder ocaml.version "4.04" 3then throw "ocurl is not available for OCaml ${ocaml.version}" 4else 5stdenv.mkDerivation rec { 6 pname = "ocurl"; 7 version = "0.9.2"; 8 9 src = fetchurl { 10 url = "https://github.com/ygrek/ocurl/releases/download/${version}/ocurl-${version}.tar.gz"; 11 sha256 = "sha256-4DWXGMh02s1VwLWW5d7h0jtMOUubWmBPGm1hghfWd2M="; 12 }; 13 14 nativeBuildInputs = [ pkg-config ocaml findlib ]; 15 propagatedBuildInputs = [ curl lwt lwt_ppx ]; 16 17 strictDeps = true; 18 19 createFindlibDestdir = true; 20 meta = { 21 description = "OCaml bindings to libcurl"; 22 license = lib.licenses.mit; 23 homepage = "http://ygrek.org.ua/p/ocurl/"; 24 maintainers = with lib.maintainers; [ dandellion bennofs ]; 25 platforms = ocaml.meta.platforms or [ ]; 26 }; 27}