Merge staging-next into staging

This commit is contained in:
Frederik Rietdijk
2019-08-17 09:39:23 +02:00
174 changed files with 4833 additions and 1993 deletions
@@ -0,0 +1,18 @@
{ lib, buildDunePackage, fetchurl }:
buildDunePackage rec {
pname = "mmap";
version = "1.1.0";
src = fetchurl {
url = "https://github.com/mirage/mmap/releases/download/v${version}/mmap-v${version}.tbz";
sha256 = "0l6waidal2n8mkdn74avbslvc10sf49f5d889n838z03pra5chsc";
};
meta = {
homepage = "https://github.com/mirage/mmap";
description = "Function for mapping files in memory";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ];
};
}
@@ -1,4 +1,4 @@
{ stdenv, buildOcaml, fetchurl
{ stdenv, fetchurl
, ocaml, findlib, pkgconfig, perl
, gmp
}:
@@ -16,31 +16,27 @@ let source =
};
in
buildOcaml rec {
name = "zarith";
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-zarith-${version}";
inherit (source) version;
src = fetchurl { inherit (source) url sha256; };
minimumSupportedOcamlVersion = "3.12.1";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ ocaml findlib perl ];
propagatedBuildInputs = [ gmp ];
# needed so setup-hook.sh sets CAML_LD_LIBRARY_PATH for dllzarith.so
hasSharedObjects = true;
patchPhase = "patchShebangs ./z_pp.pl";
configurePhase = ''
./configure -installdir $out/lib/ocaml/${ocaml.version}/site-lib
'';
preInstall = "mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib";
preInstall = "mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs";
meta = with stdenv.lib; {
description = "Fast, arbitrary precision OCaml integers";
homepage = "http://forge.ocamlcore.org/projects/zarith";
license = licenses.lgpl2;
platforms = ocaml.meta.platforms or [];
inherit (ocaml.meta) platforms;
maintainers = with maintainers; [ thoughtpolice vbgl ];
};
}