summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/redis/default.nix
blob: 86ee737431840d6cc3f7ad4b493f34a4c67ba4ec (plain)
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
{
  lib,
  fetchurl,
  buildDunePackage,
  re,
  stdlib-shims,
  uuidm,
}:

buildDunePackage (finalAttrs: {
  pname = "redis";
  version = "0.8";

  minimalOCamlVersion = "4.03";

  src = fetchurl {
    url = "https://github.com/0xffea/ocaml-redis/releases/download/v${finalAttrs.version}/redis-${finalAttrs.version}.tbz";
    hash = "sha256-Cli30Elur3tL/0bWK6PBBy229TK4jsQnN/0oVQux01I=";
  };

  propagatedBuildInputs = [
    re
    stdlib-shims
    uuidm
  ];

  doCheck = true;

  meta = {
    description = "Redis client";
    license = lib.licenses.bsd3;
    homepage = "https://github.com/0xffea/ocaml-redis";
  };
})