git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.resto: init at 0.6.1 (#129522)

ocamlPackages.resto: init at 0.6.1 ocamlPackages.resto-acl: init at 0.6.1 ocamlPackages.resto-json: init at 0.6.1 ocamlPackages.resto-directory: init at 0.6.1 ocamlPackages.resto-cohttp: init at 0.6.1 ocamlPackages.ezresto: init at 0.6.1 ocamlPackages.ezresto-directory: init at 0.6.1 ocamlPackages.resto-cohttp-server: init at 0.6.1 ocamlPackages.resto-cohttp-client: init at 0.6.1 ocamlPackages.resto-cohttp-self-serving-client: init at 0.6.1

commit0f4cee585abe6290aae9fc744108e39814a1eb75 authorUlrik Strid <ulrik.strid@outlook.com> dateThu 15 Jul 2021, 09:34 (5 years ago) parentf314e2c
11 files changed+185
pkgs/development/ocaml-modules/resto/acl.nix+13 pkgs/development/ocaml-modules/resto/cohttp-client.nix+20 pkgs/development/ocaml-modules/resto/cohttp-self-serving-client.nix+27 pkgs/development/ocaml-modules/resto/cohttp-server.nix+25 pkgs/development/ocaml-modules/resto/cohttp.nix+12 pkgs/development/ocaml-modules/resto/default.nix+28 pkgs/development/ocaml-modules/resto/directory.nix+11 pkgs/development/ocaml-modules/resto/ezresto-directory.nix+13 pkgs/development/ocaml-modules/resto/ezresto.nix+12 pkgs/development/ocaml-modules/resto/json.nix+12 pkgs/top-level/ocaml-packages.nix+12
pkgs/development/ocaml-modules/resto/acl.nixnew file+13
@@ -0,0 +1,13 @@
1+{ lib, buildDunePackage, resto, uri }:
2+
3+buildDunePackage {
4+ pname = "resto-acl";
5+ inherit (resto) src version meta useDune2 doCheck;
6+
7+ minimalOCamlVersion = "4.05";
8+
9+ propagatedBuildInputs = [
10+ resto
11+ uri
12+ ];
13+}
pkgs/development/ocaml-modules/resto/cohttp-client.nixnew file+20
@@ -0,0 +1,20 @@
1+{ buildDunePackage
2+, resto
3+, resto-directory
4+, resto-cohttp
5+, uri
6+, lwt
7+}:
8+
9+buildDunePackage {
10+ pname = "resto-cohttp-client";
11+ inherit (resto) src version meta useDune2 doCheck;
12+
13+ propagatedBuildInputs = [
14+ resto
15+ resto-directory
16+ resto-cohttp
17+ uri
18+ lwt
19+ ];
20+}
pkgs/development/ocaml-modules/resto/cohttp-self-serving-client.nixnew file+27
@@ -0,0 +1,27 @@
1+{ lib
2+, buildDunePackage
3+, resto
4+, resto-directory
5+, resto-acl
6+, resto-cohttp
7+, resto-cohttp-client
8+, resto-cohttp-server
9+, uri
10+, lwt
11+}:
12+
13+buildDunePackage {
14+ pname = "resto-cohttp-self-serving-client";
15+ inherit (resto) src version meta useDune2 doCheck;
16+
17+ propagatedBuildInputs = [
18+ resto
19+ resto-directory
20+ resto-acl
21+ resto-cohttp
22+ resto-cohttp-client
23+ resto-cohttp-server
24+ uri
25+ lwt
26+ ];
27+}
pkgs/development/ocaml-modules/resto/cohttp-server.nixnew file+25
@@ -0,0 +1,25 @@
1+{ lib
2+, buildDunePackage
3+, resto
4+, resto-directory
5+, resto-acl
6+, resto-cohttp
7+, cohttp-lwt-unix
8+, conduit-lwt-unix
9+, lwt
10+}:
11+
12+buildDunePackage {
13+ pname = "resto-cohttp-server";
14+ inherit (resto) src version meta useDune2 doCheck;
15+
16+ propagatedBuildInputs = [
17+ resto
18+ resto-directory
19+ resto-acl
20+ resto-cohttp
21+ cohttp-lwt-unix
22+ conduit-lwt-unix
23+ lwt
24+ ];
25+}
pkgs/development/ocaml-modules/resto/cohttp.nixnew file+12
@@ -0,0 +1,12 @@
1+{ buildDunePackage, resto, resto-directory, cohttp-lwt }:
2+
3+buildDunePackage {
4+ pname = "resto-cohttp";
5+ inherit (resto) src version meta useDune2 doCheck;
6+
7+ propagatedBuildInputs = [
8+ resto
9+ resto-directory
10+ cohttp-lwt
11+ ];
12+}
pkgs/development/ocaml-modules/resto/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ lib, fetchFromGitLab, buildDunePackage, uri }:
2+
3+buildDunePackage 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+}
pkgs/development/ocaml-modules/resto/directory.nixnew file+11
@@ -0,0 +1,11 @@
1+{ lib, buildDunePackage, resto, resto-json, lwt }:
2+
3+buildDunePackage {
4+ pname = "resto-directory";
5+ inherit (resto) src version meta useDune2 doCheck;
6+
7+ propagatedBuildInputs = [
8+ resto
9+ lwt
10+ ];
11+}
pkgs/development/ocaml-modules/resto/ezresto-directory.nixnew file+13
@@ -0,0 +1,13 @@
1+{ buildDunePackage, resto, resto-directory, ezresto, lwt }:
2+
3+buildDunePackage {
4+ pname = "ezresto-directory";
5+ inherit (resto) src version meta useDune2 doCheck;
6+
7+ propagatedBuildInputs = [
8+ ezresto
9+ resto-directory
10+ resto
11+ lwt
12+ ];
13+}
pkgs/development/ocaml-modules/resto/ezresto.nixnew file+12
@@ -0,0 +1,12 @@
1+{ lib, buildDunePackage, resto, resto-json, uri }:
2+
3+buildDunePackage {
4+ pname = "ezresto";
5+ inherit (resto) src version meta useDune2 doCheck;
6+
7+ propagatedBuildInputs = [
8+ uri
9+ resto
10+ resto-json
11+ ];
12+}
pkgs/development/ocaml-modules/resto/json.nixnew file+12
@@ -0,0 +1,12 @@
1+{ lib, buildDunePackage, resto, json-data-encoding, json-data-encoding-bson }:
2+
3+buildDunePackage {
4+ pname = "resto-json";
5+ inherit (resto) src version meta useDune2 doCheck;
6+
7+ propagatedBuildInputs = [
8+ resto
9+ json-data-encoding
10+ json-data-encoding-bson
11+ ];
12+}
pkgs/top-level/ocaml-packages.nix+12
@@ -1163,6 +1163,18 @@ let
11631163
11641164 reason-native = lib.recurseIntoAttrs (callPackage ../development/ocaml-modules/reason-native { });
11651165
1166+ ezresto = callPackage ../development/ocaml-modules/resto/ezresto.nix { };
1167+ ezresto-directory = callPackage ../development/ocaml-modules/resto/ezresto-directory.nix { };
1168+
1169+ resto = callPackage ../development/ocaml-modules/resto { };
1170+ resto-acl = callPackage ../development/ocaml-modules/resto/acl.nix { };
1171+ resto-cohttp = callPackage ../development/ocaml-modules/resto/cohttp.nix { };
1172+ resto-cohttp-client = callPackage ../development/ocaml-modules/resto/cohttp-client.nix { };
1173+ resto-cohttp-self-serving-client = callPackage ../development/ocaml-modules/resto/cohttp-self-serving-client.nix { };
1174+ resto-cohttp-server = callPackage ../development/ocaml-modules/resto/cohttp-server.nix { };
1175+ resto-directory = callPackage ../development/ocaml-modules/resto/directory.nix { };
1176+ resto-json = callPackage ../development/ocaml-modules/resto/json.nix { };
1177+
11661178 rope = callPackage ../development/ocaml-modules/rope { };
11671179
11681180 routes = callPackage ../development/ocaml-modules/routes { };