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