nixpkgs/pkgs/development/ocaml-modules/uecc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
756 B
Nix
Raw Normal View History

2022-08-23 06:04:50 +00:00
{ lib, fetchFromGitLab, buildDunePackage, ocaml, bigstring, alcotest, cstruct, hex }:
2021-07-07 07:41:54 +00:00
buildDunePackage rec {
pname = "uecc";
2022-12-05 08:32:22 +00:00
version = "0.4";
2021-07-07 07:41:54 +00:00
2023-03-22 05:11:54 +00:00
duneVersion = "3";
2021-07-07 07:41:54 +00:00
src = fetchFromGitLab {
owner = "nomadic-labs";
repo = "ocaml-uecc";
rev = "v${version}";
2022-12-05 08:32:22 +00:00
hash = "sha256-o/DylUx+olRRloiCU6b1t/xOmW8A5IZB2n3U7fkMo80=";
2021-07-07 07:41:54 +00:00
};
propagatedBuildInputs = [
bigstring
];
checkInputs = [
2021-07-07 07:41:54 +00:00
alcotest
cstruct
hex
];
2022-08-23 06:04:50 +00:00
doCheck = lib.versionAtLeast ocaml.version "4.08";
2021-07-07 07:41:54 +00:00
meta = {
description = "Bindings for ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors";
homepage = "https://gitlab.com/nomadic-labs/ocaml-uecc";
2021-07-07 07:41:54 +00:00
license = lib.licenses.isc;
maintainers = [ lib.maintainers.ulrikstrid ];
};
}