Skip to content

Commit 5416aaa

Browse files
Infinidogefricklerhandwerk
authored andcommitted
ocamlPackages.decoders: init at 1.0.0
Since all decoders-* packages are part of the base decoders package source, and the versions are all tied together, they are added as a single commit
1 parent e016599 commit 5416aaa

File tree

11 files changed

+375
-0
lines changed

11 files changed

+375
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
decoders,
5+
bencode,
6+
containers,
7+
ounit2,
8+
}:
9+
10+
buildDunePackage rec {
11+
pname = "decoders-bencode";
12+
13+
# sub-package built separately from the same source
14+
inherit (decoders) src version;
15+
16+
minimalOCamlVersion = "4.03.0";
17+
18+
propagatedBuildInputs = [
19+
decoders
20+
bencode
21+
];
22+
23+
doCheck = true;
24+
checkInputs = [
25+
containers
26+
ounit2
27+
];
28+
29+
meta = {
30+
description = "Bencode backend for decoders";
31+
homepage = "https://github.com/mattjbray/ocaml-decoders";
32+
changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${version}/CHANGES.md";
33+
license = lib.licenses.isc;
34+
maintainers = with lib.maintainers; [ infinidoge ];
35+
};
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
decoders,
5+
cbor,
6+
containers,
7+
ounit2,
8+
}:
9+
10+
buildDunePackage rec {
11+
pname = "decoders-cbor";
12+
13+
# sub-package built separately from the same source
14+
inherit (decoders) src version;
15+
16+
minimalOCamlVersion = "4.03.0";
17+
18+
propagatedBuildInputs = [
19+
decoders
20+
cbor
21+
];
22+
23+
doCheck = true;
24+
checkInputs = [
25+
containers
26+
ounit2
27+
];
28+
29+
meta = {
30+
description = "CBOR backend for decoders";
31+
homepage = "https://github.com/mattjbray/ocaml-decoders";
32+
changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${version}/CHANGES.md";
33+
license = lib.licenses.isc;
34+
maintainers = with lib.maintainers; [ infinidoge ];
35+
};
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
decoders,
5+
ezjsonm,
6+
containers,
7+
ounit2,
8+
}:
9+
10+
buildDunePackage rec {
11+
pname = "decoders-ezjsonm";
12+
13+
# sub-package built separately from the same source
14+
inherit (decoders) src version;
15+
16+
minimalOCamlVersion = "4.03.0";
17+
18+
propagatedBuildInputs = [
19+
decoders
20+
ezjsonm
21+
];
22+
23+
doCheck = true;
24+
checkInputs = [
25+
containers
26+
ounit2
27+
];
28+
29+
meta = {
30+
description = "Ezjsonm backend for decoders";
31+
homepage = "https://github.com/mattjbray/ocaml-decoders";
32+
changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${version}/CHANGES.md";
33+
license = lib.licenses.isc;
34+
maintainers = with lib.maintainers; [ infinidoge ];
35+
};
36+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
decoders,
5+
ezxmlm,
6+
containers,
7+
}:
8+
9+
buildDunePackage rec {
10+
pname = "decoders-ezxmlm";
11+
12+
# sub-package built separately from the same source
13+
inherit (decoders) src version;
14+
15+
minimalOCamlVersion = "4.03.0";
16+
17+
propagatedBuildInputs = [
18+
decoders
19+
ezxmlm
20+
];
21+
22+
doCheck = true;
23+
checkInputs = [
24+
containers
25+
];
26+
27+
meta = {
28+
description = "Ezxmlm backend for decoders";
29+
homepage = "https://github.com/mattjbray/ocaml-decoders";
30+
changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${version}/CHANGES.md";
31+
license = lib.licenses.isc;
32+
maintainers = with lib.maintainers; [ infinidoge ];
33+
};
34+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
decoders,
5+
jsonaf ? null,
6+
containers,
7+
ounit2,
8+
}:
9+
10+
buildDunePackage rec {
11+
pname = "decoders-jsonaf";
12+
13+
# sub-package built separately from the same source
14+
inherit (decoders) src version;
15+
16+
minimalOCamlVersion = "4.11.0";
17+
18+
propagatedBuildInputs = [
19+
decoders
20+
jsonaf
21+
];
22+
23+
doCheck = true;
24+
checkInputs = [
25+
containers
26+
ounit2
27+
];
28+
29+
meta = {
30+
description = "Jsonaf backend for decoders";
31+
homepage = "https://github.com/mattjbray/ocaml-decoders";
32+
changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${version}/CHANGES.md";
33+
license = lib.licenses.isc;
34+
maintainers = with lib.maintainers; [ infinidoge ];
35+
};
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
decoders,
5+
jsonm,
6+
containers,
7+
ounit2,
8+
}:
9+
10+
buildDunePackage rec {
11+
pname = "decoders-jsonm";
12+
13+
# sub-package built separately from the same source
14+
inherit (decoders) src version;
15+
16+
minimalOCamlVersion = "4.03.0";
17+
18+
propagatedBuildInputs = [
19+
decoders
20+
jsonm
21+
];
22+
23+
doCheck = true;
24+
checkInputs = [
25+
containers
26+
ounit2
27+
];
28+
29+
meta = {
30+
description = "Jsonm backend for decoders";
31+
homepage = "https://github.com/mattjbray/ocaml-decoders";
32+
changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${version}/CHANGES.md";
33+
license = lib.licenses.isc;
34+
maintainers = with lib.maintainers; [ infinidoge ];
35+
};
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
decoders,
5+
msgpck,
6+
containers,
7+
ounit2,
8+
}:
9+
10+
buildDunePackage rec {
11+
pname = "decoders-msgpck";
12+
13+
# sub-package built separately from the same source
14+
inherit (decoders) src version;
15+
16+
minimalOCamlVersion = "4.03.0";
17+
18+
propagatedBuildInputs = [
19+
decoders
20+
msgpck
21+
];
22+
23+
doCheck = true;
24+
checkInputs = [
25+
containers
26+
ounit2
27+
];
28+
29+
meta = {
30+
description = "Msgpck backend for decoders";
31+
homepage = "https://github.com/mattjbray/ocaml-decoders";
32+
changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${version}/CHANGES.md";
33+
license = lib.licenses.isc;
34+
maintainers = with lib.maintainers; [ infinidoge ];
35+
};
36+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
decoders,
5+
sexplib,
6+
sexplib0,
7+
containers,
8+
ounit2,
9+
}:
10+
11+
buildDunePackage rec {
12+
pname = "decoders-sexplib";
13+
14+
# sub-package built separately from the same source
15+
inherit (decoders) src version;
16+
17+
minimalOCamlVersion = "4.03.0";
18+
19+
propagatedBuildInputs = [
20+
decoders
21+
sexplib
22+
sexplib0
23+
];
24+
25+
doCheck = true;
26+
checkInputs = [
27+
containers
28+
ounit2
29+
];
30+
31+
meta = {
32+
description = "sexplib backend for decoders";
33+
homepage = "https://github.com/mattjbray/ocaml-decoders";
34+
changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${version}/CHANGES.md";
35+
license = lib.licenses.isc;
36+
maintainers = with lib.maintainers; [ infinidoge ];
37+
};
38+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
decoders,
5+
yojson,
6+
containers,
7+
ounit2,
8+
}:
9+
10+
buildDunePackage rec {
11+
pname = "decoders-yojson";
12+
13+
# sub-package built separately from the same source
14+
inherit (decoders) src version;
15+
16+
minimalOCamlVersion = "4.03.0";
17+
18+
propagatedBuildInputs = [
19+
decoders
20+
yojson
21+
];
22+
23+
doCheck = true;
24+
checkInputs = [
25+
containers
26+
ounit2
27+
];
28+
29+
meta = {
30+
description = "Yojson backend for decoders";
31+
homepage = "https://github.com/mattjbray/ocaml-decoders";
32+
changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${version}/CHANGES.md";
33+
license = lib.licenses.isc;
34+
maintainers = with lib.maintainers; [ infinidoge ];
35+
};
36+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
fetchurl,
5+
containers,
6+
}:
7+
8+
buildDunePackage rec {
9+
pname = "decoders";
10+
version = "1.0.0";
11+
12+
minimalOCamlVersion = "4.03.0";
13+
14+
src = fetchurl {
15+
url = "https://github.com/mattjbray/ocaml-decoders/releases/download/v${version}/${pname}-${version}.tbz";
16+
hash = "sha256-R/55xBAtD3EO/zzq7zExANnfPHlFg00884o5dCpXNZc=";
17+
};
18+
19+
doCheck = true;
20+
checkInputs = [
21+
containers
22+
];
23+
24+
meta = {
25+
description = "Elm-inspired decoders for Ocaml";
26+
homepage = "https://github.com/mattjbray/ocaml-decoders";
27+
changelog = "https://github.com/mattjbray/ocaml-decoders/blob/${version}/CHANGES.md";
28+
license = lib.licenses.isc;
29+
maintainers = with lib.maintainers; [ infinidoge ];
30+
};
31+
}

0 commit comments

Comments
 (0)