git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.rfc7748: init at 1.0
commit61ea3fe636a7ceaf0356e2b78a41f6587a46bf4d authorMihai Fufezan <fufexan@pm.me> dateFri 27 Aug 2021, 10:33 (5 years ago) parent843eebb
2 files changed+45
pkgs/development/ocaml-modules/rfc7748/default.nix+43 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/rfc7748/default.nixnew file+43
@@ -0,0 +1,43 @@
1+{ lib
2+, buildDunePackage
3+, fetchFromGitHub
4+, ocaml
5+
6+, ounit
7+, zarith
8+}:
9+
10+buildDunePackage rec {
11+ pname = "rfc7748";
12+ version = "1.0";
13+
14+ src = fetchFromGitHub {
15+ owner = "burgerdev";
16+ repo = "ocaml-rfc7748";
17+ rev = "v${version}";
18+ sha256 = "sha256-mgZooyfxrKBVQFn01B8PULmFUW9Zq5HJfgHCSJSkJo4=";
19+ };
20+
21+ useDune2 = true;
22+
23+ minimumOCamlVersion = "4.05";
24+
25+ propagatedBuildInputs = [ zarith ];
26+
27+ # the tests fail for 4.05
28+ doCheck = lib.versionAtLeast ocaml.version "4.06";
29+ checkInputs = [ ounit ];
30+
31+ meta = {
32+ homepage = "https://github.com/burgerdev/ocaml-rfc7748";
33+ description = "Elliptic Curve Diffie-Hellman on Edwards Curves (X25519, X448)";
34+ longDescription = ''
35+ This library implements the ECDH functions 'X25519' and 'X448' as specified
36+ in RFC 7748, 'Elliptic curves for security'. In the spirit of the original
37+ publications, the public API is kept as simple as possible to make it easy
38+ to use and hard to misuse.
39+ '';
40+ license = lib.licenses.bsd2;
41+ maintainers = with lib.maintainers; [ fufexan ];
42+ };
43+}
pkgs/top-level/ocaml-packages.nix+2
@@ -1180,6 +1180,8 @@ let
11801180
11811181 reason-native = lib.recurseIntoAttrs (callPackage ../development/ocaml-modules/reason-native { });
11821182
1183+ rfc7748 = callPackage ../development/ocaml-modules/rfc7748 { };
1184+
11831185 ezresto = callPackage ../development/ocaml-modules/resto/ezresto.nix { };
11841186 ezresto-directory = callPackage ../development/ocaml-modules/resto/ezresto-directory.nix { };
11851187