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