Merge staging-next into staging
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ lib, fetchzip, pkgconfig, ncurses, libev, buildDunePackage, ocaml
|
||||
, cppo, ocaml-migrate-parsetree, ppx_tools_versioned, result
|
||||
, cppo, ocaml-migrate-parsetree, ocplib-endian, result
|
||||
, mmap, seq
|
||||
}:
|
||||
|
||||
@@ -7,22 +7,17 @@ let inherit (lib) optional versionAtLeast; in
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "lwt";
|
||||
version = "4.2.1";
|
||||
version = "4.4.0";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/ocsigen/${pname}/archive/${version}.tar.gz";
|
||||
sha256 = "1hz24fyhpm7d6603v399pgxvdl236srwagqja41ljvjx83y10ysr";
|
||||
sha256 = "1l97zdcql7y13fhaq0m9n9xvxf712jg0w70r72fvv6j49xm4nlhi";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace lwt.opam \
|
||||
--replace 'version: "dev"' 'version: "${version}"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ cppo ocaml-migrate-parsetree ppx_tools_versioned ]
|
||||
buildInputs = [ cppo ocaml-migrate-parsetree ]
|
||||
++ optional (!versionAtLeast ocaml.version "4.07") ncurses;
|
||||
propagatedBuildInputs = [ libev mmap seq result ];
|
||||
propagatedBuildInputs = [ libev mmap ocplib-endian seq result ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://ocsigen.org/lwt/";
|
||||
|
||||
27
pkgs/development/ocaml-modules/sodium/default.nix
Normal file
27
pkgs/development/ocaml-modules/sodium/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user