aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/conduit/default.nix
blob: 22538b87f6af8c3ec04430602bd67880ded54b69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchFromGitHub, buildDunePackage
, ppx_sexp_conv, sexplib
, astring, ipaddr, macaddr, uri,
}:

buildDunePackage rec {
  pname = "conduit";
  version = "1.4.0";

  src = fetchFromGitHub {
    owner = "mirage";
    repo = "ocaml-conduit";
    rev = "v${version}";
    sha256 = "1qzamqcmf9ywz04bkwrv17mz9j6zq2w9h1xmnjvp11pnwrs2xq8l";
  };

  buildInputs = [ ppx_sexp_conv ];
  propagatedBuildInputs = [ astring ipaddr macaddr sexplib uri ];

  meta = {
    description = "Network connection library for TCP and SSL";
    license = stdenv.lib.licenses.isc;
    maintainers = with stdenv.lib.maintainers; [ alexfmpe vbgl ];
    inherit (src.meta) homepage;
  };
}