Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchurl, buildDunePackage
2, cstruct, sexplib0, mirage-crypto, mirage-crypto-pk, astring, base64
3}:
4
5buildDunePackage rec {
6 pname = "otr";
7 version = "0.3.10";
8
9 minimalOCamlVersion = "4.08";
10
11 src = fetchurl {
12 url = "https://github.com/hannesm/ocaml-otr/releases/download/v${version}/otr-v${version}.tbz";
13 hash = "sha256:0dssc7p6s7z53n0mddyipjghzr8ld8bb7alaxqrx9gdpspwab1gq";
14 };
15
16 duneVersion = "3";
17
18 propagatedBuildInputs = [ cstruct sexplib0 mirage-crypto mirage-crypto-pk
19 astring base64 ];
20
21 doCheck = true;
22
23 meta = with lib; {
24 homepage = "https://github.com/hannesm/ocaml-otr";
25 description = "Off-the-record messaging protocol, purely in OCaml";
26 license = licenses.bsd2;
27 maintainers = with maintainers; [ sternenseemann ];
28 };
29}