lol
1{ lib, buildDunePackage, fetchurl
2, ppx_sexp_conv, ppx_cstruct
3, mirage-crypto, mirage-crypto-ec, mirage-crypto-rng, mirage-crypto-pk
4, x509, cstruct, cstruct-unix, cstruct-sexp, sexplib, eqaf
5, rresult, mtime, logs, fmt, cmdliner, base64
6, zarith
7}:
8
9buildDunePackage rec {
10 pname = "awa";
11 version = "0.1.0";
12
13 minimalOCamlVersion = "4.08";
14
15 src = fetchurl {
16 url = "https://github.com/mirage/awa-ssh/releases/download/v${version}/awa-${version}.tbz";
17 sha256 = "sha256-aPnFDp52oYVHr/56lFw0gtVJ0KvHawyM5FGtpHPOVY8=";
18 };
19
20 nativeBuildInputs = [ ppx_cstruct ];
21
22 propagatedBuildInputs = [
23 mirage-crypto mirage-crypto-ec mirage-crypto-rng mirage-crypto-pk x509
24 cstruct cstruct-sexp sexplib mtime
25 logs base64 zarith
26 ppx_sexp_conv eqaf
27 ];
28
29 doCheck = true;
30 checkInputs = [ cstruct-unix cmdliner fmt ];
31
32 meta = with lib; {
33 description = "SSH implementation in OCaml";
34 homepage = "https://github.com/mirage/awa-ssh";
35 changelog = "https://github.com/mirage/awa-ssh/raw/v${version}/CHANGES.md";
36 license = licenses.isc;
37 maintainers = [ maintainers.sternenseemann ];
38 };
39}