diff options
author | Cedric Cellier <rixed@happyleptic.org> | 2019-11-18 22:00:36 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2019-11-22 07:48:55 +0000 |
commit | 359e6446efcf47735f594c74d4b3f2571bc75316 (patch) | |
tree | 55cb46e3aa082c6663b2644941f4ce7b84cd7c55 /pkgs | |
parent | f0ad58380c4ff7e7d9db0a01ddd0e9e1705ccb10 (diff) | |
download | nixpkgs-359e6446efcf47735f594c74d4b3f2571bc75316.tar nixpkgs-359e6446efcf47735f594c74d4b3f2571bc75316.tar.gz nixpkgs-359e6446efcf47735f594c74d4b3f2571bc75316.tar.bz2 nixpkgs-359e6446efcf47735f594c74d4b3f2571bc75316.tar.lz nixpkgs-359e6446efcf47735f594c74d4b3f2571bc75316.tar.xz nixpkgs-359e6446efcf47735f594c74d4b3f2571bc75316.tar.zst nixpkgs-359e6446efcf47735f594c74d4b3f2571bc75316.zip |
ocaml-sodium: init at 0.6.0
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/sodium/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/sodium/default.nix b/pkgs/development/ocaml-modules/sodium/default.nix new file mode 100644 index 00000000000..8c8895d4520 --- /dev/null +++ b/pkgs/development/ocaml-modules/sodium/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 38b0d43706a..20cd2965549 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -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 { }; |