nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 mirage-crypto,
6 mirage-crypto-ec,
7 mirage-crypto-rng,
8 mirage-crypto-pk,
9 x509,
10 cstruct,
11 cstruct-unix,
12 eqaf,
13 mtime,
14 logs,
15 fmt,
16 cmdliner,
17 base64,
18 zarith,
19 mirage-mtime,
20}:
21
22buildDunePackage (finalAttrs: {
23 pname = "awa";
24 version = "0.5.2";
25
26 src = fetchurl {
27 url = "https://github.com/mirage/awa-ssh/releases/download/v${finalAttrs.version}/awa-${finalAttrs.version}.tbz";
28 hash = "sha256-64gloekVN0YsBwUodrJc6QaNU3PGKMIZMPJWvBfzaj0=";
29 };
30
31 propagatedBuildInputs = [
32 mirage-crypto
33 mirage-crypto-ec
34 mirage-crypto-rng
35 mirage-crypto-pk
36 x509
37 cstruct
38 mtime
39 logs
40 base64
41 zarith
42 eqaf
43 ];
44
45 doCheck = true;
46 checkInputs = [
47 cstruct-unix
48 cmdliner
49 fmt
50 mirage-mtime
51 ];
52
53 meta = {
54 description = "SSH implementation in OCaml";
55 homepage = "https://github.com/mirage/awa-ssh";
56 changelog = "https://github.com/mirage/awa-ssh/raw/v${finalAttrs.version}/CHANGES.md";
57 license = lib.licenses.isc;
58 maintainers = [ lib.maintainers.sternenseemann ];
59 };
60})