1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

ocamlPackages.callipyge: init at 0.2

This commit is contained in:
Mihai Fufezan 2021-08-27 10:32:58 +03:00 committed by Vincent Laporte
parent d945e55ffc
commit 38927fac53
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ lib
, buildDunePackage
, fetchurl
, ocaml
, alcotest
, eqaf
, fmt
}:
buildDunePackage rec {
pname = "callipyge";
version = "0.2";
src = fetchurl {
url = "https://github.com/oklm-wsh/Callipyge/releases/download/v${version}/${pname}-${version}.tbz";
sha256 = "sha256-T/94a88xvK51TggjXecdKc9kyTE9aIyueIt5T24sZB0=";
};
useDune2 = true;
minimumOCamlVersion = "4.03";
propagatedBuildInputs = [ fmt eqaf ];
# alcotest isn't available for OCaml < 4.05 due to fmt
doCheck = lib.versionAtLeast ocaml.version "4.05";
checkInputs = [ alcotest ];
meta = {
homepage = "https://github.com/oklm-wsh/Callipyge";
description = "Curve25519 in OCaml";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fufexan ];
};
}

View file

@ -141,6 +141,8 @@ let
cairo2 = callPackage ../development/ocaml-modules/cairo2 { };
callipyge = callPackage ../development/ocaml-modules/callipyge { };
caqti = callPackage ../development/ocaml-modules/caqti { };
caqti-async = callPackage ../development/ocaml-modules/caqti/async.nix { };