ocamlPackages.bencode: init at 2.0

This commit is contained in:
Infinidoge 2025-05-21 23:00:16 -04:00 committed by Valentin Gagarin
parent 7baddbc4fd
commit e016599ff5
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{
lib,
buildDunePackage,
fetchFromGitHub,
ounit,
qcheck,
}:
buildDunePackage rec {
pname = "bencode";
version = "2.0";
minimalOCamlVersion = "4.02.0";
src = fetchFromGitHub {
owner = "rgrinberg";
repo = "bencode";
tag = version;
hash = "sha256-sEMS9oBOPeFX1x7cHjbQhCD2QI5yqC+550pPqqMsVws=";
};
doCheck = true;
checkInputs = [
ounit
qcheck
];
meta = {
description = "Bencode (.torrent file format) reader/writer in OCaml ";
homepage = "https://github.com/rgrinberg/bencode";
changelog = "https://github.com/rgrinberg/bencode/blob/${version}/Changelog.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ infinidoge ];
};
}

View file

@ -88,6 +88,8 @@ let
benchmark = callPackage ../development/ocaml-modules/benchmark { };
bencode = callPackage ../development/ocaml-modules/bencode { };
bheap = callPackage ../development/ocaml-modules/bheap { };
bigarray-compat = callPackage ../development/ocaml-modules/bigarray-compat { };