nixpkgs/pkgs/development/ocaml-modules/lwt-exit/default.nix
Ulrik Strid a13cdfe520 ocamlPackages tree-wide: Move buildInputs that should be nativeBuildInputs
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild.
This makes some closures significantly smaller and makes cross compilation easier
2022-02-24 14:39:27 +01:00

36 lines
650 B
Nix

{ lib
, fetchFromGitLab
, buildDunePackage
, lwt
, ptime
}:
buildDunePackage rec {
pname = "lwt-exit";
version = "1.0";
src = fetchFromGitLab {
owner = "nomadic-labs";
repo = pname;
rev = "${version}";
sha256 = "1k763bmj1asj9ijar39rh3h1d59rckmsf21h2y8966lgglsf42bd";
};
useDune2 = true;
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [
lwt
ptime
];
# for some reason this never exits
doCheck = false;
meta = {
description = "An opinionated clean-exit and signal-handling library for Lwt programs";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.ulrikstrid ];
};
}