ocamlPackages.json-data-encoding: init at 0.8, ocamlPackages.data-encoding: init at 0.2.0 (#129444)
parent
17de7c8df1
commit
a164e1d0a1
@ -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 ]; |
||||
}; |
||||
} |
@ -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 ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue