about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/get-activity/lib.nix
blob: 7f3fe161a6d2b32398e3d1cc2067f91e2c8bb1f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  lib,
  buildDunePackage,
  fetchFromGitHub,
  ppx_expect,
  astring,
  curly,
  fmt,
  logs,
  ppx_yojson_conv,
  ppx_yojson_conv_lib,
  yojson,
  alcotest
}:

buildDunePackage rec {
  pname = "get-activity-lib";
  version = "2.0.1";

  src = fetchFromGitHub {
    owner = "tarides";
    repo = "get-activity";
    rev = version;
    hash = "sha256-QU/LPIxcem5nFvSxcNApOuBu6UHqLHIXVSOJ2UT0eKA=";
  };

  minimalOCamlVersion = "4.08";

  buildInputs = [ ppx_yojson_conv ];

  propagatedBuildInputs = [
    astring
    curly
    fmt
    logs
    ppx_yojson_conv_lib
    yojson
  ];

  checkInputs = [ ppx_expect alcotest ];

  doCheck = true;

  meta = {
    homepage = "https://github.com/tarides/get-activity";
    description = "Collect activity and format as markdown for a journal (lib)";
    license = lib.licenses.mit;
    changelog = "https://github.com/tarides/get-activity/releases/tag/${version}";
    maintainers = with lib.maintainers; [ zazedd ];
  };
}