Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, buildDunePackage, ocaml
2, cryptokit, ocamlnet, ocurl, yojson
3, ounit2
4}:
5
6buildDunePackage rec {
7 pname = "gapi-ocaml";
8 version = "0.4.4";
9 duneVersion = "3";
10
11 minimalOCamlVersion = "4.08";
12
13 src = fetchFromGitHub {
14 owner = "astrada";
15 repo = pname;
16 rev = "v${version}";
17 hash = "sha256-+UNFW5tmIh5dVyTDEOfOmy1j+gV4P28jlnBTdpQNAjE=";
18 };
19
20 propagatedBuildInputs = [ cryptokit ocamlnet ocurl yojson ];
21
22 doCheck = true;
23 checkInputs = [ ounit2 ];
24
25 meta = {
26 description = "OCaml client for google services";
27 homepage = "https://github.com/astrada/gapi-ocaml";
28 license = lib.licenses.mit;
29 maintainers = with lib.maintainers; [ bennofs ];
30 };
31}