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