Merge master into closure-size

The kde-5 stuff still didn't merge well.
I hand-fixed what I saw, but there may be more problems.
This commit is contained in:
Vladimír Čunát
2016-03-08 09:57:58 +01:00
1276 changed files with 78548 additions and 29166 deletions

View File

@@ -17,7 +17,7 @@ buildOcaml rec {
hasSharedObjects = true;
meta = with stdenv.lib; {
description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml.";
description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml";
homepage = http://code.google.com/p/bitstring/;
license = licenses.lgpl21Plus;
maintainers = [ maintainers.maurer ];

View File

@@ -0,0 +1,47 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, cppo, gen, sequence, qtest, ounit }:
let version = "0.15"; in
stdenv.mkDerivation {
name = "ocaml-containers-${version}";
src = fetchFromGitHub {
owner = "c-cube";
repo = "ocaml-containers";
rev = "${version}";
sha256 = "13mdl8jp4ymg1wip7lqmh4224x4jnji3frm1ik55vvm3ac8caqng";
};
buildInputs = [ ocaml findlib cppo gen sequence qtest ounit ];
configureFlags = [
"--enable-unix"
"--enable-thread"
"--enable-bigarray"
"--enable-advanced"
"--enable-tests"
"--disable-bench"
];
doCheck = true;
checkTarget = "test";
createFindlibDestdir = true;
meta = {
homepage = https://github.com/c-cube/ocaml-containers;
description = "A modular standard library focused on data structures";
longDescription = ''
Containers is a standard library (BSD license) focused on data structures,
combinators and iterators, without dependencies on unix. Every module is
independent and is prefixed with 'CC' in the global namespace. Some modules
extend the stdlib (e.g. CCList provides safe map/fold_right/append, and
additional functions on lists).
It also features optional libraries for dealing with strings, and
helpers for unix and threads.
'';
license = stdenv.lib.licenses.bsd2;
platforms = ocaml.meta.platforms;
};
}

View File

@@ -0,0 +1,25 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, qtest, ounit }:
let version = "0.3"; in
stdenv.mkDerivation {
name = "ocaml-gen-${version}";
src = fetchFromGitHub {
owner = "c-cube";
repo = "gen";
rev = "${version}";
sha256 = "0xrnkcfa5q86ammf49j5hynw5563x5sa2mk7vqf7g097j1szif72";
};
buildInputs = [ ocaml findlib qtest ounit ];
createFindlibDestdir = true;
meta = {
homepage = https://github.com/c-cube/gen;
description = "Simple, efficient iterators for OCaml";
license = stdenv.lib.licenses.bsd3;
platforms = ocaml.meta.platforms;
};
}

View File

@@ -1,11 +1,11 @@
{ stdenv, fetchurl, ocaml, findlib
, version ? if stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.02" then "20151112" else "20140422"
, version ? if stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.02" then "20160303" else "20140422"
}@args:
let
sha256 =
if version == "20140422" then "1ki1f2id6a14h9xpv2k8yb6px7dyw8cvwh39csyzj4qpzx7wia0d"
else if version == "20151112" then "0fhfs96gxnj920h5ydsg7c1qypsbrlzqfn2cqzrg9rfj1qq6wq86"
else if version == "20160303" then "1q57x81483xkvbx6bqjx31d4c4lpy9fs3y7h3l8azrs9yi7r6c63"
else throw ("menhir: unknown version " ++ version);
in

View File

@@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, ocaml, findlib }:
let version = "1.1"; in
stdenv.mkDerivation {
name = "ocaml-result-${version}";
src = fetchFromGitHub {
owner = "janestreet";
repo = "result";
rev = "${version}";
sha256 = "05y07rxdbkaxsc8cy458y00gq05i8gp35hhwg1b757mam21ccxxz";
};
buildInputs = [ ocaml findlib ];
createFindlibDestdir = true;
meta = {
homepage = https://github.com/janestreet/result;
description = "Compatibility Result module";
longDescription = ''
Projects that want to use the new result type defined in OCaml >= 4.03
while staying compatible with older version of OCaml should use the
Result module defined in this library.
'';
license = stdenv.lib.licenses.bsd3;
platforms = ocaml.meta.platforms;
};
}

View File

@@ -10,7 +10,7 @@ stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "http://downloads.sourceforge.net/project/ocamlsdl/OCamlSDL/ocamlsdl-0.9.1/ocamlsdl-0.9.1.tar.gz";
url = "mirror://sourceforge/project/ocamlsdl/OCamlSDL/ocamlsdl-0.9.1/ocamlsdl-0.9.1.tar.gz";
sha256 = "abfb295b263dc11e97fffdd88ea1a28b46df8cc2b196777093e4fe7f509e4f8f";
};

View File

@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
homepage = http://piqi.org;
description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings.";
description = "Universal schema language and a collection of tools built around it. These are the ocaml bindings";
license = licenses.asl20;
maintainers = [ maintainers.maurer ];
};

View File

@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
homepage = http://piqi.org;
description = "Universal schema language and a collection of tools built around it.";
description = "Universal schema language and a collection of tools built around it";
license = licenses.asl20;
maintainers = [ maintainers.maurer ];
};

View File

@@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, qtest, ounit }:
let version = "0.6"; in
stdenv.mkDerivation {
name = "ocaml-sequence-${version}";
src = fetchFromGitHub {
owner = "c-cube";
repo = "sequence";
rev = "${version}";
sha256 = "0mky5qas3br2x4y14dzcky212z624ydqnx8mw8w00x0c1xjpafkb";
};
buildInputs = [ ocaml findlib qtest ounit ];
configureFlags = [
"--enable-tests"
];
doCheck = true;
checkTarget = "test";
createFindlibDestdir = true;
meta = {
homepage = https://github.com/c-cube/sequence;
description = "Simple sequence (iterator) datatype and combinators";
longDescription = ''
Simple sequence datatype, intended to transfer a finite number of
elements from one data structure to another. Some transformations on sequences,
like `filter`, `map`, `take`, `drop` and `append` can be performed before the
sequence is iterated/folded on.
'';
license = stdenv.lib.licenses.bsd2;
platforms = ocaml.meta.platforms;
};
}

View File

@@ -9,7 +9,7 @@ stdenv.mkDerivation {
name = "ocaml-ssl-${version}";
src = fetchurl {
url = "http://downloads.sourceforge.net/project/savonet/ocaml-ssl/0.5.2/ocaml-ssl-0.5.2.tar.gz";
url = "mirror://sourceforge/project/savonet/ocaml-ssl/0.5.2/ocaml-ssl-0.5.2.tar.gz";
sha256 = "0341rm8aqrckmhag1lrqfnl17v6n4ci8ibda62ahkkn5cxd58cpp";
};

View File

@@ -0,0 +1,49 @@
{ stdenv, fetchurl, ocaml, findlib, ctypes, result, SDL2, pkgconfig, opam }:
let
inherit (stdenv.lib) getVersion;
pname = "tsdl";
version = "0.9.0";
webpage = "http://erratique.ch/software/${pname}";
in
stdenv.mkDerivation {
name = "ocaml-${pname}-${version}";
src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz";
sha256 = "02x0wsy5nxagxrh07yb2h4yqqy1bxryp2gwrylds0j6ybqsv4shm";
};
buildInputs = [ ocaml findlib result pkgconfig opam ];
propagatedBuildInputs = [ SDL2 ctypes ];
createFindlibDestdir = true;
unpackCmd = "tar xjf $src";
buildPhase = ''
# The following is done to avoid an additional dependency (ncurses)
# due to linking in the custom bytecode runtime. Instead, just
# compile directly into a native binary, even if it's just a
# temporary build product.
substituteInPlace myocamlbuild.ml \
--replace ".byte" ".native"
ocaml pkg/build.ml native=true native-dynlink=true
'';
installPhase = ''
opam-installer --script --prefix=$out ${pname}.install | sh
ln -s $out/lib/${pname} $out/lib/ocaml/${getVersion ocaml}/site-lib/${pname}
'';
meta = with stdenv.lib; {
homepage = "${webpage}";
description = "Thin bindings to the cross-platform SDL library";
license = licenses.bsd3;
platforms = ocaml.meta.platforms;
};
}

View File

@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
createFindlibDestdir = true;
meta = with stdenv.lib; {
description = "An OCaml module implementing 128 bits universally unique identifiers version 3, 5 (name based with MD5, SHA-1 hashing) and 4 (random based) according to RFC 4122.";
description = "An OCaml module implementing 128 bits universally unique identifiers version 3, 5 (name based with MD5, SHA-1 hashing) and 4 (random based) according to RFC 4122";
homepage = http://erratique.ch/software/uuidm;
license = licenses.bsd3;
platforms = ocaml.meta.platforms;

View File

@@ -1,21 +0,0 @@
{ stdenv, ocaml, findlib, zarith, menhir, why3 }:
let ocaml-version = stdenv.lib.getVersion ocaml; in
assert stdenv.lib.versionAtLeast ocaml-version "4.01";
stdenv.mkDerivation {
name = "ocaml-${why3.name}";
inherit (why3) src;
buildInputs = [ ocaml findlib zarith menhir ];
installTargets = "install-lib";
meta = {
inherit (why3.meta) license homepage;
platforms = ocaml.meta.platforms;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}