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
This commit is contained in:
parent
f314e2c141
commit
0f4cee585a
11 changed files with 185 additions and 0 deletions
13
pkgs/development/ocaml-modules/resto/acl.nix
Normal file
13
pkgs/development/ocaml-modules/resto/acl.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ lib, buildDunePackage, resto, uri }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "resto-acl";
|
||||
inherit (resto) src version meta useDune2 doCheck;
|
||||
|
||||
minimalOCamlVersion = "4.05";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
resto
|
||||
uri
|
||||
];
|
||||
}
|
20
pkgs/development/ocaml-modules/resto/cohttp-client.nix
Normal file
20
pkgs/development/ocaml-modules/resto/cohttp-client.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ buildDunePackage
|
||||
, resto
|
||||
, resto-directory
|
||||
, resto-cohttp
|
||||
, uri
|
||||
, lwt
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "resto-cohttp-client";
|
||||
inherit (resto) src version meta useDune2 doCheck;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
resto
|
||||
resto-directory
|
||||
resto-cohttp
|
||||
uri
|
||||
lwt
|
||||
];
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
{ lib
|
||||
, buildDunePackage
|
||||
, resto
|
||||
, resto-directory
|
||||
, resto-acl
|
||||
, resto-cohttp
|
||||
, resto-cohttp-client
|
||||
, resto-cohttp-server
|
||||
, uri
|
||||
, lwt
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "resto-cohttp-self-serving-client";
|
||||
inherit (resto) src version meta useDune2 doCheck;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
resto
|
||||
resto-directory
|
||||
resto-acl
|
||||
resto-cohttp
|
||||
resto-cohttp-client
|
||||
resto-cohttp-server
|
||||
uri
|
||||
lwt
|
||||
];
|
||||
}
|
25
pkgs/development/ocaml-modules/resto/cohttp-server.nix
Normal file
25
pkgs/development/ocaml-modules/resto/cohttp-server.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ lib
|
||||
, buildDunePackage
|
||||
, resto
|
||||
, resto-directory
|
||||
, resto-acl
|
||||
, resto-cohttp
|
||||
, cohttp-lwt-unix
|
||||
, conduit-lwt-unix
|
||||
, lwt
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "resto-cohttp-server";
|
||||
inherit (resto) src version meta useDune2 doCheck;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
resto
|
||||
resto-directory
|
||||
resto-acl
|
||||
resto-cohttp
|
||||
cohttp-lwt-unix
|
||||
conduit-lwt-unix
|
||||
lwt
|
||||
];
|
||||
}
|
12
pkgs/development/ocaml-modules/resto/cohttp.nix
Normal file
12
pkgs/development/ocaml-modules/resto/cohttp.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ buildDunePackage, resto, resto-directory, cohttp-lwt }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "resto-cohttp";
|
||||
inherit (resto) src version meta useDune2 doCheck;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
resto
|
||||
resto-directory
|
||||
cohttp-lwt
|
||||
];
|
||||
}
|
28
pkgs/development/ocaml-modules/resto/default.nix
Normal file
28
pkgs/development/ocaml-modules/resto/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib, fetchFromGitLab, buildDunePackage, uri }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "resto";
|
||||
version = "0.6.1";
|
||||
src = fetchFromGitLab {
|
||||
owner = "nomadic-labs";
|
||||
repo = "resto";
|
||||
rev = "v${version}";
|
||||
sha256 = "13h3zga7h2jhgbyda1q53szbpxcz3vvy3c51mlqk3jh9jq2wrn87";
|
||||
};
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
11
pkgs/development/ocaml-modules/resto/directory.nix
Normal file
11
pkgs/development/ocaml-modules/resto/directory.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ lib, buildDunePackage, resto, resto-json, lwt }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "resto-directory";
|
||||
inherit (resto) src version meta useDune2 doCheck;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
resto
|
||||
lwt
|
||||
];
|
||||
}
|
13
pkgs/development/ocaml-modules/resto/ezresto-directory.nix
Normal file
13
pkgs/development/ocaml-modules/resto/ezresto-directory.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ buildDunePackage, resto, resto-directory, ezresto, lwt }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "ezresto-directory";
|
||||
inherit (resto) src version meta useDune2 doCheck;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ezresto
|
||||
resto-directory
|
||||
resto
|
||||
lwt
|
||||
];
|
||||
}
|
12
pkgs/development/ocaml-modules/resto/ezresto.nix
Normal file
12
pkgs/development/ocaml-modules/resto/ezresto.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ lib, buildDunePackage, resto, resto-json, uri }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "ezresto";
|
||||
inherit (resto) src version meta useDune2 doCheck;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
uri
|
||||
resto
|
||||
resto-json
|
||||
];
|
||||
}
|
12
pkgs/development/ocaml-modules/resto/json.nix
Normal file
12
pkgs/development/ocaml-modules/resto/json.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ lib, buildDunePackage, resto, json-data-encoding, json-data-encoding-bson }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "resto-json";
|
||||
inherit (resto) src version meta useDune2 doCheck;
|
||||
|
||||
propagatedBuildInputs = [
|
||||
resto
|
||||
json-data-encoding
|
||||
json-data-encoding-bson
|
||||
];
|
||||
}
|
|
@ -1163,6 +1163,18 @@ let
|
|||
|
||||
reason-native = lib.recurseIntoAttrs (callPackage ../development/ocaml-modules/reason-native { });
|
||||
|
||||
ezresto = callPackage ../development/ocaml-modules/resto/ezresto.nix { };
|
||||
ezresto-directory = callPackage ../development/ocaml-modules/resto/ezresto-directory.nix { };
|
||||
|
||||
resto = callPackage ../development/ocaml-modules/resto { };
|
||||
resto-acl = callPackage ../development/ocaml-modules/resto/acl.nix { };
|
||||
resto-cohttp = callPackage ../development/ocaml-modules/resto/cohttp.nix { };
|
||||
resto-cohttp-client = callPackage ../development/ocaml-modules/resto/cohttp-client.nix { };
|
||||
resto-cohttp-self-serving-client = callPackage ../development/ocaml-modules/resto/cohttp-self-serving-client.nix { };
|
||||
resto-cohttp-server = callPackage ../development/ocaml-modules/resto/cohttp-server.nix { };
|
||||
resto-directory = callPackage ../development/ocaml-modules/resto/directory.nix { };
|
||||
resto-json = callPackage ../development/ocaml-modules/resto/json.nix { };
|
||||
|
||||
rope = callPackage ../development/ocaml-modules/rope { };
|
||||
|
||||
routes = callPackage ../development/ocaml-modules/routes { };
|
||||
|
|
Loading…
Reference in a new issue