nixpkgs/pkgs/development/ocaml-modules/lwt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
938 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, pkg-config, ncurses, libev, buildDunePackage, ocaml
, cppo, dune-configurator, ocplib-endian, result
, mmap, seq
2021-02-08 09:04:12 +01:00
, ocaml-syntax-shims
2016-11-21 19:20:43 +01:00
}:
let inherit (lib) optional versionOlder; in
buildDunePackage rec {
pname = "lwt";
2022-05-12 07:01:15 +02:00
version = "5.5.0";
src = fetchFromGitHub {
owner = "ocsigen";
repo = "lwt";
rev = version;
2022-05-12 07:01:15 +02:00
sha256 = "sha256:1jbjz2rsz3j56k8vh5qlmm87hhkr250bs2m3dvpy9vsri8rkzj9z";
};
strictDeps = true;
nativeBuildInputs = [ pkg-config cppo ]
++ optional (versionOlder ocaml.version "4.08") ocaml-syntax-shims;
buildInputs = [ dune-configurator ]
++ optional (versionOlder ocaml.version "4.07") ncurses;
2019-11-13 18:13:05 +01:00
propagatedBuildInputs = [ libev mmap ocplib-endian seq result ];
2018-03-25 20:26:39 +02:00
meta = {
homepage = "https://ocsigen.org/lwt/";
description = "A cooperative threads library for OCaml";
maintainers = [ lib.maintainers.vbgl ];
license = lib.licenses.mit;
};
}