summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/json-data-encoding/default.nix
blob: 13b81d9c52718b55942856cb89276d23400654b3 (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
{ lib, fetchFromGitLab, buildDunePackage, uri, crowbar, alcotest }:

buildDunePackage rec {
  pname = "json-data-encoding";
  version = "0.11";
  minimalOCamlVersion = "4.10";
  src = fetchFromGitLab {
    owner = "nomadic-labs";
    repo = "json-data-encoding";
    rev = "${version}";
    sha256 = "sha256-4FNUU82sq3ylgw0lxHlwi1OV58NRRh9zJqE47YyQZSc=";
  };

  propagatedBuildInputs = [
    uri
  ];

  checkInputs = [
    crowbar
    alcotest
  ];

  doCheck = true;

  meta = {
    homepage = "https://gitlab.com/nomadic-labs/json-data-encoding";
    description = "Type-safe encoding to and decoding from JSON";
    license = lib.licenses.lgpl3;
    maintainers = [ lib.maintainers.ulrikstrid ];
  };
}