Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.2.0";
12
13 minimalOCamlVersion = "4.08";
14 duneVersion = "3";
15
16 src = fetchurl {
17 url = "https://github.com/mirage/awa-ssh/releases/download/v${version}/awa-${version}.tbz";
18 hash = "sha256-hsmTuoubBdsEyGe8zmfG7JihY0LFM4lErpPKUVobIX8=";
19 };
20
21 propagatedBuildInputs = [
22 mirage-crypto mirage-crypto-ec mirage-crypto-rng mirage-crypto-pk x509
23 cstruct cstruct-sexp sexplib mtime
24 logs base64 zarith
25 ppx_sexp_conv eqaf
26 ];
27
28 buildInputs = [ ppx_cstruct ];
29
30 doCheck = true;
31 checkInputs = [ cstruct-unix cmdliner fmt ];
32
33 meta = with lib; {
34 description = "SSH implementation in OCaml";
35 homepage = "https://github.com/mirage/awa-ssh";
36 changelog = "https://github.com/mirage/awa-ssh/raw/v${version}/CHANGES.md";
37 license = licenses.isc;
38 maintainers = [ maintainers.sternenseemann ];
39 };
40}