about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsternenseemann <git@lukasepple.de>2020-05-12 18:25:44 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2020-05-12 22:34:30 +0200
commit435fd99ab6117252ef345167242929b15c711dad (patch)
treeb56e5970c4803ede9f2c50b5967b2d727a657c31
parentbd30d8fca76e8e3e59e5342eb9c14aa3015ca36f (diff)
downloadnixlib-435fd99ab6117252ef345167242929b15c711dad.tar
nixlib-435fd99ab6117252ef345167242929b15c711dad.tar.gz
nixlib-435fd99ab6117252ef345167242929b15c711dad.tar.bz2
nixlib-435fd99ab6117252ef345167242929b15c711dad.tar.lz
nixlib-435fd99ab6117252ef345167242929b15c711dad.tar.xz
nixlib-435fd99ab6117252ef345167242929b15c711dad.tar.zst
nixlib-435fd99ab6117252ef345167242929b15c711dad.zip
ocamlPackages.fiat-p256: init at 0.2.1
-rw-r--r--pkgs/development/ocaml-modules/fiat-p256/default.nix26
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/fiat-p256/default.nix b/pkgs/development/ocaml-modules/fiat-p256/default.nix
new file mode 100644
index 000000000000..ac7e6640eeab
--- /dev/null
+++ b/pkgs/development/ocaml-modules/fiat-p256/default.nix
@@ -0,0 +1,26 @@
+{ lib, buildDunePackage, fetchurl, alcotest, asn1-combinators, benchmark
+, bigarray-compat, cstruct, eqaf, hex, ppx_deriving_yojson, rresult
+, stdlib-shims, yojson, dune-configurator }:
+
+buildDunePackage rec {
+  pname = "fiat-p256";
+  version = "0.2.1";
+
+  src = fetchurl {
+    url = "https://github.com/mirage/fiat/releases/download/v${version}/${pname}-v${version}.tbz";
+    sha256 = "0086h9qkvnqfm8acrxqbki54z619nj73x7f0d01v5vg2naznx7w9";
+  };
+
+  buildInputs = [ dune-configurator ];
+  propagatedBuildInputs = [ bigarray-compat cstruct eqaf hex ];
+  checkInputs = [ alcotest asn1-combinators benchmark
+                  ppx_deriving_yojson rresult stdlib-shims yojson ];
+  doCheck = true;
+
+  meta = with lib; {
+    description = "Primitives for Elliptic Curve Cryptography taken from Fiat";
+    homepage = "https://github.com/mirage/fiat";
+    license = licenses.mit;
+    maintainers = with maintainers; [ sternenseemann ];
+  };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index e4180a39f1d4..4e56fd56e3e1 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -267,6 +267,8 @@ let
 
     farfadet = callPackage ../development/ocaml-modules/farfadet { };
 
+    fiat-p256 = callPackage ../development/ocaml-modules/fiat-p256 { };
+
     fieldslib_p4 = callPackage ../development/ocaml-modules/fieldslib { };
 
     fileutils = callPackage ../development/ocaml-modules/fileutils { };