Skip to content

Commit e016599

Browse files
Infinidogefricklerhandwerk
authored andcommitted
ocamlPackages.bencode: init at 2.0
1 parent 7baddbc commit e016599

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
lib,
3+
buildDunePackage,
4+
fetchFromGitHub,
5+
ounit,
6+
qcheck,
7+
}:
8+
9+
buildDunePackage rec {
10+
pname = "bencode";
11+
version = "2.0";
12+
minimalOCamlVersion = "4.02.0";
13+
14+
src = fetchFromGitHub {
15+
owner = "rgrinberg";
16+
repo = "bencode";
17+
tag = version;
18+
hash = "sha256-sEMS9oBOPeFX1x7cHjbQhCD2QI5yqC+550pPqqMsVws=";
19+
};
20+
21+
doCheck = true;
22+
checkInputs = [
23+
ounit
24+
qcheck
25+
];
26+
27+
meta = {
28+
description = "Bencode (.torrent file format) reader/writer in OCaml ";
29+
homepage = "https://github.com/rgrinberg/bencode";
30+
changelog = "https://github.com/rgrinberg/bencode/blob/${version}/Changelog.md";
31+
license = lib.licenses.mit;
32+
maintainers = with lib.maintainers; [ infinidoge ];
33+
};
34+
}

pkgs/top-level/ocaml-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ let
8888

8989
benchmark = callPackage ../development/ocaml-modules/benchmark { };
9090

91+
bencode = callPackage ../development/ocaml-modules/bencode { };
92+
9193
bheap = callPackage ../development/ocaml-modules/bheap { };
9294

9395
bigarray-compat = callPackage ../development/ocaml-modules/bigarray-compat { };

0 commit comments

Comments
 (0)