git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.callipyge: init at 0.2
commit38927fac53a02f233f294265e48cc2bcbd7b2667 authorMihai Fufezan <fufexan@pm.me> dateFri 27 Aug 2021, 10:32 (5 years ago) parentd945e55
2 files changed+38
pkgs/development/ocaml-modules/callipyge/default.nix+36 pkgs/top-level/ocaml-packages.nix+2
pkgs/development/ocaml-modules/callipyge/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib
2+, buildDunePackage
3+, fetchurl
4+, ocaml
5+
6+, alcotest
7+, eqaf
8+, fmt
9+}:
10+
11+buildDunePackage rec {
12+ pname = "callipyge";
13+ version = "0.2";
14+
15+ src = fetchurl {
16+ url = "https://github.com/oklm-wsh/Callipyge/releases/download/v${version}/${pname}-${version}.tbz";
17+ sha256 = "sha256-T/94a88xvK51TggjXecdKc9kyTE9aIyueIt5T24sZB0=";
18+ };
19+
20+ useDune2 = true;
21+
22+ minimumOCamlVersion = "4.03";
23+
24+ propagatedBuildInputs = [ fmt eqaf ];
25+
26+ # alcotest isn't available for OCaml < 4.05 due to fmt
27+ doCheck = lib.versionAtLeast ocaml.version "4.05";
28+ checkInputs = [ alcotest ];
29+
30+ meta = {
31+ homepage = "https://github.com/oklm-wsh/Callipyge";
32+ description = "Curve25519 in OCaml";
33+ license = lib.licenses.mit;
34+ maintainers = with lib.maintainers; [ fufexan ];
35+ };
36+}
pkgs/top-level/ocaml-packages.nix+2
@@ -141,6 +141,8 @@ let
141141
142142 cairo2 = callPackage ../development/ocaml-modules/cairo2 { };
143143
144+ callipyge = callPackage ../development/ocaml-modules/callipyge { };
145+
144146 caqti = callPackage ../development/ocaml-modules/caqti { };
145147
146148 caqti-async = callPackage ../development/ocaml-modules/caqti/async.nix { };