2021-07-16 19:40:57 +00:00
|
|
|
{ lib, fetchFromGitLab, buildDunePackage, uri }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "resto";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "1.0";
|
2023-01-20 10:41:00 +00:00
|
|
|
duneVersion = "3";
|
2021-07-16 19:40:57 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "nomadic-labs";
|
|
|
|
repo = "resto";
|
|
|
|
rev = "v${version}";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-DIm7fmISsCgRDi4p3NsUk7Cvs/dHpIKMdAOVdYLX2mc=";
|
2021-07-16 19:40:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
uri
|
|
|
|
];
|
|
|
|
|
|
|
|
# resto has infinite recursion in their tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A minimal OCaml library for type-safe HTTP/JSON RPCs";
|
|
|
|
homepage = "https://gitlab.com/nomadic-labs/resto";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
|
|
|
};
|
|
|
|
}
|