1{ lib, fetchFromGitLab, buildDunePackage, uri }:
2
3buildDunePackage rec {
4 pname = "resto";
5 version = "0.6.1";
6 src = fetchFromGitLab {
7 owner = "nomadic-labs";
8 repo = "resto";
9 rev = "v${version}";
10 sha256 = "13h3zga7h2jhgbyda1q53szbpxcz3vvy3c51mlqk3jh9jq2wrn87";
11 };
12
13 useDune2 = true;
14
15 propagatedBuildInputs = [
16 uri
17 ];
18
19 # resto has infinite recursion in their tests
20 doCheck = false;
21
22 meta = {
23 description = "A minimal OCaml library for type-safe HTTP/JSON RPCs";
24 homepage = "https://gitlab.com/nomadic-labs/resto";
25 license = lib.licenses.mit;
26 maintainers = [ lib.maintainers.ulrikstrid ];
27 };
28}