Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / ocaml-modules / data-encoding / default.nix
blobdb139d2b26aed82f0c6454505be73c41bab14c96
1 { lib
2 , fetchFromGitLab
3 , buildDunePackage
4 , ppx_hash
5 , either
6 , ezjsonm
7 , zarith
8 , zarith_stubs_js ? null
9 , hex
10 , json-data-encoding
11 , json-data-encoding-bson
12 , alcotest
13 , crowbar
14 , ppx_expect
17 buildDunePackage rec {
18   pname = "data-encoding";
19   version = "0.7.1";
21   duneVersion = "3";
22   minimalOCamlVersion = "4.10";
24   src = fetchFromGitLab {
25     owner = "nomadic-labs";
26     repo = "data-encoding";
27     rev = "v${version}";
28     hash = "sha256-V3XiCCtoU+srOI+KVSJshtaSJLBJ4m4o10GpBfdYKCU=";
29   };
31   propagatedBuildInputs = [
32     either
33     ezjsonm
34     ppx_hash
35     zarith
36     zarith_stubs_js
37     hex
38     json-data-encoding
39     json-data-encoding-bson
40   ];
42   checkInputs = [
43     alcotest
44     crowbar
45     ppx_expect
46   ];
48   doCheck = true;
50   meta = {
51     homepage = "https://gitlab.com/nomadic-labs/data-encoding";
52     description = "Library of JSON and binary encoding combinators";
53     license = lib.licenses.mit;
54     maintainers = [ lib.maintainers.ulrikstrid ];
55   };