ocaml-sodium: init at 0.6.0

This commit is contained in:
Cedric Cellier 2019-11-18 22:00:36 +01:00 committed by Vincent Laporte
parent f0ad58380c
commit 359e6446ef
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, ctypes, libsodium }:
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-sodium";
version = "0.6.0";
src = fetchFromGitHub {
owner = "dsheets";
repo = "ocaml-sodium";
rev = version;
sha256 = "124gpi1jhac46x05gp5viykyrafnlp03v1cmkl13c6pgcs8w04pv";
};
buildInputs = [ ocaml findlib ocamlbuild ];
propagatedBuildInputs = [ ctypes libsodium ];
createFindlibDestdir = true;
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "strictoverflow";
meta = with stdenv.lib; {
homepage = https://github.com/dsheets/ocaml-sodium;
description = "Binding to libsodium 1.0.9+";
platforms = ocaml.meta.platforms or [];
maintainers = [ maintainers.rixed ];
};
}

View File

@ -755,6 +755,8 @@ let
sedlex = callPackage ../development/ocaml-modules/sedlex { };
sodium = callPackage ../development/ocaml-modules/sodium { };
spelll = callPackage ../development/ocaml-modules/spelll { };
sqlite3EZ = callPackage ../development/ocaml-modules/sqlite3EZ { };