ocamlPackages.json-data-encoding: init at 0.8, ocamlPackages.data-encoding: init at 0.2.0 (#129444)
This commit is contained in:
parent
17de7c8df1
commit
a164e1d0a1
46
pkgs/development/ocaml-modules/data-encoding/default.nix
Normal file
46
pkgs/development/ocaml-modules/data-encoding/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitLab
|
||||||
|
, buildDunePackage
|
||||||
|
, ezjsonm
|
||||||
|
, zarith
|
||||||
|
, hex
|
||||||
|
, json-data-encoding
|
||||||
|
, json-data-encoding-bson
|
||||||
|
, alcotest
|
||||||
|
, crowbar
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage {
|
||||||
|
pname = "data-encoding";
|
||||||
|
version = "0.2.0";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "nomadic-labs";
|
||||||
|
repo = "data-encoding";
|
||||||
|
rev = "0.2";
|
||||||
|
sha256 = "0d9c2ix2imqk4r0jfhnwak9laarlbsq9kmswvbnjzdm2g0hwin1d";
|
||||||
|
};
|
||||||
|
useDune2 = true;
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
ezjsonm
|
||||||
|
zarith
|
||||||
|
hex
|
||||||
|
json-data-encoding
|
||||||
|
json-data-encoding-bson
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
alcotest
|
||||||
|
crowbar
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://gitlab.com/nomadic-labs/data-encoding";
|
||||||
|
description = "Library of JSON and binary encoding combinators";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = [ lib.maintainers.ulrikstrid ];
|
||||||
|
};
|
||||||
|
}
|
20
pkgs/development/ocaml-modules/json-data-encoding/bson.nix
Normal file
20
pkgs/development/ocaml-modules/json-data-encoding/bson.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{ lib, buildDunePackage, json-data-encoding, ocplib-endian, crowbar }:
|
||||||
|
|
||||||
|
buildDunePackage {
|
||||||
|
pname = "json-data-encoding-bson";
|
||||||
|
|
||||||
|
inherit (json-data-encoding) version src useDune2 doCheck;
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
json-data-encoding
|
||||||
|
ocplib-endian
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
crowbar
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = json-data-encoding.meta // {
|
||||||
|
description = "Type-safe encoding to and decoding from JSON (bson support)";
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib, fetchFromGitLab, buildDunePackage, uri, crowbar }:
|
||||||
|
|
||||||
|
buildDunePackage rec {
|
||||||
|
pname = "json-data-encoding";
|
||||||
|
version = "0.8";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "nomadic-labs";
|
||||||
|
repo = "json-data-encoding";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1c6m2qvi9bm6qjxc38p6cia1f66r0rb9xf6b8svlj3jjymvqw889";
|
||||||
|
};
|
||||||
|
useDune2 = true;
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
uri
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
crowbar
|
||||||
|
];
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -242,6 +242,8 @@ let
|
||||||
|
|
||||||
dap = callPackage ../development/ocaml-modules/dap { };
|
dap = callPackage ../development/ocaml-modules/dap { };
|
||||||
|
|
||||||
|
data-encoding = callPackage ../development/ocaml-modules/data-encoding { };
|
||||||
|
|
||||||
decompress = callPackage ../development/ocaml-modules/decompress { };
|
decompress = callPackage ../development/ocaml-modules/decompress { };
|
||||||
|
|
||||||
diet = callPackage ../development/ocaml-modules/diet { };
|
diet = callPackage ../development/ocaml-modules/diet { };
|
||||||
|
@ -548,6 +550,10 @@ let
|
||||||
|
|
||||||
jsonm = callPackage ../development/ocaml-modules/jsonm { };
|
jsonm = callPackage ../development/ocaml-modules/jsonm { };
|
||||||
|
|
||||||
|
json-data-encoding = callPackage ../development/ocaml-modules/json-data-encoding { };
|
||||||
|
|
||||||
|
json-data-encoding-bson = callPackage ../development/ocaml-modules/json-data-encoding/bson.nix { };
|
||||||
|
|
||||||
junit = callPackage ../development/ocaml-modules/junit { };
|
junit = callPackage ../development/ocaml-modules/junit { };
|
||||||
junit_ounit = callPackage ../development/ocaml-modules/junit/ounit.nix { };
|
junit_ounit = callPackage ../development/ocaml-modules/junit/ounit.nix { };
|
||||||
junit_alcotest = callPackage ../development/ocaml-modules/junit/alcotest.nix { };
|
junit_alcotest = callPackage ../development/ocaml-modules/junit/alcotest.nix { };
|
||||||
|
|
Loading…
Reference in a new issue