nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 994 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 ocaml, 6 findlib, 7 ocamlbuild, 8 ctypes, 9 libsodium, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "ocaml${ocaml.version}-sodium"; 14 version = "0.6.0"; 15 16 src = fetchFromGitHub { 17 owner = "dsheets"; 18 repo = "ocaml-sodium"; 19 rev = version; 20 sha256 = "124gpi1jhac46x05gp5viykyrafnlp03v1cmkl13c6pgcs8w04pv"; 21 }; 22 23 patches = [ 24 # ctypes.stubs no longer pulls in bigarray automatically 25 ./lib-gen-link-bigarray.patch 26 ]; 27 28 nativeBuildInputs = [ 29 ocaml 30 findlib 31 ocamlbuild 32 ]; 33 propagatedBuildInputs = [ 34 ctypes 35 libsodium 36 ]; 37 38 strictDeps = true; 39 40 createFindlibDestdir = true; 41 42 hardeningDisable = lib.optional stdenv.hostPlatform.isDarwin "strictoverflow"; 43 44 meta = { 45 homepage = "https://github.com/dsheets/ocaml-sodium"; 46 description = "Binding to libsodium 1.0.9+"; 47 inherit (ocaml.meta) platforms; 48 maintainers = [ lib.maintainers.rixed ]; 49 broken = lib.versionAtLeast ocaml.version "5.0"; 50 }; 51}