mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
ocamlPackages.cbor: init at 0.5
This commit is contained in:
parent
a099e06261
commit
7baddbc4fd
2 changed files with 37 additions and 0 deletions
35
pkgs/development/ocaml-modules/cbor/default.nix
Normal file
35
pkgs/development/ocaml-modules/cbor/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildDunePackage,
|
||||||
|
fetchurl,
|
||||||
|
ocplib-endian,
|
||||||
|
yojson,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage rec {
|
||||||
|
pname = "cbor";
|
||||||
|
version = "0.5";
|
||||||
|
|
||||||
|
minimalOCamlVersion = "4.07.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/ygrek/ocaml-cbor/releases/download/${version}/ocaml-cbor-${version}.tar.gz";
|
||||||
|
hash = "sha256-4mpm/fv9X5uFRQO8XqBhOpxYwZreEtJ3exIwN6YulKM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
ocplib-endian
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkInputs = [
|
||||||
|
yojson
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "CBOR encoder/decoder (RFC 7049) - native OCaml implementation";
|
||||||
|
homepage = "https://github.com/ygrek/ocaml-cbor";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ infinidoge ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -202,6 +202,8 @@ let
|
||||||
git-binary = pkgs.git;
|
git-binary = pkgs.git;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cbor = callPackage ../development/ocaml-modules/cbor { };
|
||||||
|
|
||||||
cfstream = callPackage ../development/ocaml-modules/cfstream { };
|
cfstream = callPackage ../development/ocaml-modules/cfstream { };
|
||||||
|
|
||||||
chacha = callPackage ../development/ocaml-modules/chacha { };
|
chacha = callPackage ../development/ocaml-modules/chacha { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue