summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/json-data-encoding/default.nix
blob: 3c21d451d81b7ac6317e4da7da10d14d47522671 (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
{
  lib,
  fetchFromGitLab,
  buildDunePackage,
  hex,
  uri,
}:

buildDunePackage rec {
  pname = "json-data-encoding";
  version = "1.0.1";
  minimalOCamlVersion = "4.10";
  src = fetchFromGitLab {
    owner = "nomadic-labs";
    repo = "data-encoding";
    rev = "v${version}";
    hash = "sha256-KoA4xX4tNyi6bX5kso/Wof1LA7431EXJ34eD5X4jnd8=";
  };

  propagatedBuildInputs = [
    hex
    uri
  ];

  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 ];
  };
}