nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchpatch,
5 rpclib,
6 alcotest,
7 ppxlib,
8 ppx_deriving,
9 yojson,
10}:
11
12buildDunePackage {
13 pname = "ppx_deriving_rpc";
14
15 inherit (rpclib) version src;
16
17 minimalOCamlVersion = "4.08";
18
19 patches = lib.optional (lib.versionAtLeast ppxlib.version "0.36") (fetchpatch {
20 url = "https://github.com/mirage/ocaml-rpc/commit/678b7c0e59f6add174f2a732861be21c3e9583d0.patch";
21 hash = "sha256-6Vl4/C02NQ/nPn+h9I/eT86R7GLZ/C8nSqBs4Ywzhwc=";
22 });
23
24 propagatedBuildInputs = [
25 ppxlib
26 rpclib
27 ppx_deriving
28 ];
29
30 checkInputs = [
31 alcotest
32 yojson
33 ];
34 doCheck = true;
35
36 meta = {
37 homepage = "https://github.com/mirage/ocaml-rpc";
38 description = "Ppx deriver for ocaml-rpc";
39 license = lib.licenses.isc;
40 maintainers = [ lib.maintainers.vyorkin ];
41 };
42}