git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.noise: init at 0.2.0
commit843eebbd8e0a951e5c2c3f1cd2e17a39f6c08701 authorMihai Fufezan <fufexan@pm.me> dateFri 27 Aug 2021, 10:33 (5 years ago) parentdd37bf5
2 files changed+62
pkgs/development/ocaml-modules/noise/default.nix+60 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/noise/default.nixnew file+60
@@ -0,0 +1,60 @@
1+{ lib
2+, buildDunePackage
3+, fetchurl
4+
5+, callipyge
6+, chacha
7+, digestif
8+, hex
9+, lwt
10+, lwt_ppx
11+, nocrypto
12+, ounit
13+, ppxlib
14+, ppx_let
15+, ppx_deriving
16+, ppx_deriving_yojson
17+}:
18+
19+buildDunePackage rec {
20+ pname = "noise";
21+ version = "0.2.0";
22+
23+ src = fetchurl {
24+ url = "https://github.com/emillon/ocaml-noise/releases/download/v${version}/${pname}-v${version}.tbz";
25+ sha256 = "sha256-fe3pT7fsuF2hCvXpInsRg6OvARs/eAh1Un454s1osDs=";
26+ };
27+
28+ useDune2 = true;
29+
30+ minimumOCamlVersion = "4.04";
31+
32+ nativeBuildInputs = [
33+ ppxlib
34+ ppx_deriving
35+ ppx_let
36+ ];
37+
38+ propagatedBuildInputs = [
39+ callipyge
40+ chacha
41+ digestif
42+ hex
43+ nocrypto
44+ ];
45+
46+ doCheck = true;
47+ checkInputs = [
48+ lwt
49+ lwt_ppx
50+ ounit
51+ ppx_deriving_yojson
52+ ];
53+
54+ meta = {
55+ homepage = "https://github.com/emillon/ocaml-noise";
56+ description = "OCaml implementation of the Noise Protocol Framework";
57+ license = lib.licenses.bsd2;
58+ maintainers = with lib.maintainers; [ fufexan ];
59+ };
60+}
pkgs/top-level/ocaml-packages.nix+2
@@ -808,6 +808,8 @@ let
808808
809809 nocrypto = callPackage ../development/ocaml-modules/nocrypto { };
810810
811+ noise = callPackage ../development/ocaml-modules/noise { };
812+
811813 nonstd = callPackage ../development/ocaml-modules/nonstd { };
812814
813815 notty = callPackage ../development/ocaml-modules/notty { };