jbuilder: 1.0.1 -> dune: 1.1.1

This commit is contained in:
Vincent Laporte 2018-09-05 16:11:47 +00:00 committed by Vincent Laporte
parent eb429c7c54
commit fc19401d67
69 changed files with 228 additions and 230 deletions

View file

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, zlib
, ocaml, jbuilder, opam, ocamlfuse, findlib, gapi_ocaml, ocaml_sqlite3, camlidl }:
, ocaml, dune, ocamlfuse, findlib, gapi_ocaml, ocaml_sqlite3, camlidl }:
stdenv.mkDerivation rec {
name = "google-drive-ocamlfuse-${version}";
@ -12,12 +12,12 @@ stdenv.mkDerivation rec {
sha256 = "1rjm2jcc93sz7l25zbgqal81534vvvbmwy7847s0k8fkr5nq97gp";
};
nativeBuildInputs = [ jbuilder opam ];
nativeBuildInputs = [ dune ];
buildInputs = [ zlib ocaml ocamlfuse findlib gapi_ocaml ocaml_sqlite3 camlidl ];
buildPhase = "jbuilder build @install";
installPhase = "mkdir $out && jbuilder install --prefix $out";
installPhase = "mkdir $out && dune install --prefix $out";
meta = {
homepage = http://gdfuse.forge.ocamlcore.org/;

View file

@ -1,4 +1,4 @@
{ stdenv, makeWrapper, fetchFromGitHub, ocaml, findlib, jbuilder
{ stdenv, makeWrapper, fetchFromGitHub, ocaml, findlib, dune
, menhir, merlin_extend, ppx_tools_versioned, utop
}:
@ -15,14 +15,14 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ menhir merlin_extend ppx_tools_versioned ];
buildInputs = [ makeWrapper ocaml findlib jbuilder utop menhir ];
buildInputs = [ makeWrapper ocaml findlib dune utop menhir ];
buildFlags = [ "build" ]; # do not "make tests" before reason lib is installed
installPhase = ''
for p in reason rtop
do
${jbuilder.installPhase} $p.install
${dune.installPhase} $p.install
done
wrapProgram $out/bin/rtop \

View file

@ -1,4 +1,4 @@
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, topkg, jbuilder
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, topkg, dune
, cmdliner, astring, fmt, result
}:
@ -6,9 +6,9 @@ let param =
if stdenv.lib.versionAtLeast ocaml.version "4.02" then {
version = "0.8.2";
sha256 = "1zpg079v89mz2dpnh59f9hk5r03wl26skfn43llrv3kg24abjfpf";
buildInputs = [ jbuilder ];
buildPhase = "jbuilder build -p alcotest";
inherit (jbuilder) installPhase;
buildInputs = [ dune ];
buildPhase = "dune build -p alcotest";
inherit (dune) installPhase;
} else {
version = "0.7.2";
sha256 = "1qgsz2zz5ky6s5pf3j3shc4fjc36rqnjflk8x0wl1fcpvvkr52md";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, alcotest, result
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, alcotest, result
, bigstringaf
}:
@ -17,15 +17,15 @@ stdenv.mkDerivation rec {
sha256 = "0lh6024yf9ds0nh9i93r9m6p5psi8nvrqxl5x7jwl13zb0r9xfpw";
};
buildInputs = [ ocaml findlib jbuilder alcotest ];
buildInputs = [ ocaml findlib dune alcotest ];
propagatedBuildInputs = [ bigstringaf result ];
buildPhase = "jbuilder build -p angstrom";
buildPhase = "dune build -p angstrom";
doCheck = true;
checkPhase = "jbuilder runtest -p angstrom";
checkPhase = "dune runtest -p angstrom";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
homepage = https://github.com/inhabitedtype/angstrom;

View file

@ -1,4 +1,4 @@
{ stdenv, menhir, easy-format, ocaml, findlib, fetchFromGitHub, jbuilder, which, biniou, yojson }:
{ stdenv, menhir, easy-format, ocaml, findlib, fetchFromGitHub, dune, which, biniou, yojson }:
stdenv.mkDerivation rec {
version = "2.0.0";
@ -14,11 +14,11 @@ stdenv.mkDerivation rec {
createFindlibDestdir = true;
buildInputs = [ which jbuilder ocaml findlib menhir ];
buildInputs = [ which dune ocaml findlib menhir ];
propagatedBuildInputs = [ easy-format biniou yojson ];
buildPhase = "jbuilder build";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = with stdenv.lib; {
homepage = https://github.com/mjambon/atd;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, alcotest }:
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, alcotest }:
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
then throw "bigstringaf is not available for OCaml ${ocaml.version}"
@ -15,12 +15,12 @@ stdenv.mkDerivation rec {
sha256 = "1yx6hv8rk0ldz1h6kk00rwg8abpfc376z00aifl9f5rn7xavpscs";
};
buildInputs = [ ocaml findlib jbuilder alcotest ];
buildInputs = [ ocaml findlib dune alcotest ];
doCheck = true;
checkPhase = "dune runtest";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Bigstring intrinsics and fast blits based on memcpy/memmove";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, easy-format }:
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, easy-format }:
stdenv.mkDerivation rec {
version = "1.2.0";
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "0mjpgwyfq2b2izjw0flmlpvdjgqpq8shs89hxj1np2r50csr8dcb";
};
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
propagatedBuildInputs = [ easy-format ];
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
patchShebangs .
'';
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
inherit (src.meta) homepage;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, ppx_tools_versioned
, ounit
}:
@ -13,14 +13,14 @@ stdenv.mkDerivation rec {
sha256 = "0r49qax7as48jgknzaq6p9rbpmrvnmlic713wzz5bj60j5h0396f";
};
buildInputs = [ ocaml findlib jbuilder ppx_tools_versioned ounit ];
buildInputs = [ ocaml findlib dune ppx_tools_versioned ounit ];
buildPhase = "jbuilder build";
doCheck = true;
checkPhase = "jbuilder runtest";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = with stdenv.lib; {
description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchzip, findlib, jbuilder, ocaml, configurator, cppo, lablgtk }:
{ stdenv, fetchzip, findlib, dune, ocaml, configurator, cppo, lablgtk }:
stdenv.mkDerivation rec {
name = "camlimages-${version}";
version = "5.0.0";
@ -6,9 +6,9 @@ stdenv.mkDerivation rec {
url = "https://bitbucket.org/camlspotter/camlimages/get/${version}.tar.gz";
sha256 = "00qvwxkfnhv93yi1iq7vy3p5lxyi9xigxcq464s4ii6bmp32d998";
};
buildInputs = [ findlib jbuilder ocaml configurator cppo lablgtk ];
buildPhase = "jbuilder build -p camlimages";
inherit (jbuilder) installPhase;
buildInputs = [ findlib dune ocaml configurator cppo lablgtk ];
buildPhase = "dune build -p camlimages";
inherit (dune) installPhase;
meta = with stdenv.lib; {
branch = "5.0";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, cppo }:
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, cppo }:
stdenv.mkDerivation rec {
version = "0.8.7";
@ -11,11 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "0rh58nl5jrnx01hf0yqbdcc2ncx107pq29zblchww82ci0x1xwsf";
};
buildInputs = [ ocaml findlib jbuilder cppo ];
buildInputs = [ ocaml findlib dune cppo ];
configurePhase = "ocaml configure.ml --share $out/share/camomile";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
inherit (ocaml.meta) platforms;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, ppx_fields_conv, ppx_sexp_conv, ppx_deriving
, base64, fieldslib, jsonm, re, stringext, uri
}:
@ -14,13 +14,13 @@ stdenv.mkDerivation rec {
sha256 = "0zgn32axmjvkmbvyfkbjcqximzc4zcfxs118b98xyrqnvwb0k7ka";
};
buildInputs = [ ocaml findlib jbuilder jsonm ppx_fields_conv ppx_sexp_conv ];
buildInputs = [ ocaml findlib dune jsonm ppx_fields_conv ppx_sexp_conv ];
propagatedBuildInputs = [ ppx_deriving base64 fieldslib re stringext uri ];
buildPhase = "jbuilder build -p cohttp";
buildPhase = "dune build -p cohttp";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "HTTP(S) library for Lwt, Async and Mirage";

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, cohttp-lwt
{ stdenv, ocaml, findlib, dune, cohttp-lwt
, conduit-lwt-unix, ppx_sexp_conv
, cmdliner, fmt, magic-mime
}:
@ -11,9 +11,9 @@ stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-cohttp-lwt-unix-${version}";
inherit (cohttp-lwt) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder cmdliner ppx_sexp_conv ];
buildInputs = [ ocaml findlib dune cmdliner ppx_sexp_conv ];
propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ];
buildPhase = "jbuilder build -p cohttp-lwt-unix";
buildPhase = "dune build -p cohttp-lwt-unix";
}

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, cohttp, lwt3, uri, ppx_sexp_conv }:
{ stdenv, ocaml, findlib, dune, cohttp, lwt3, uri, ppx_sexp_conv }:
if !stdenv.lib.versionAtLeast cohttp.version "0.99"
then cohttp
@ -8,9 +8,9 @@ stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-cohttp-lwt-${version}";
inherit (cohttp) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder uri ppx_sexp_conv ];
buildInputs = [ ocaml findlib dune uri ppx_sexp_conv ];
propagatedBuildInputs = [ cohttp lwt3 ];
buildPhase = "jbuilder build -p cohttp-lwt";
buildPhase = "dune build -p cohttp-lwt";
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, ppx_sexp_conv
, astring, ipaddr, uri
}:
@ -14,12 +14,12 @@ stdenv.mkDerivation rec {
sha256 = "1ryigzh7sfif1mly624fpm87aw5h60n5wzdlrvqsf71qcpxc6iiz";
};
buildInputs = [ ocaml findlib jbuilder ppx_sexp_conv ];
buildInputs = [ ocaml findlib dune ppx_sexp_conv ];
propagatedBuildInputs = [ astring ipaddr uri ];
buildPhase = "jbuilder build -p conduit";
buildPhase = "dune build -p conduit";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Network connection library for TCP and SSL";

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, conduit-lwt
{ stdenv, ocaml, findlib, dune, conduit-lwt
, logs, ppx_sexp_conv, lwt_ssl
}:
@ -10,9 +10,9 @@ stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-conduit-lwt-unix-${version}";
inherit (conduit-lwt) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder ppx_sexp_conv ];
buildInputs = [ ocaml findlib dune ppx_sexp_conv ];
propagatedBuildInputs = [ conduit-lwt logs lwt_ssl ];
buildPhase = "jbuilder build -p conduit-lwt-unix";
buildPhase = "dune build -p conduit-lwt-unix";
}

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, ppx_sexp_conv, conduit, lwt3 }:
{ stdenv, ocaml, findlib, dune, ppx_sexp_conv, conduit, lwt3 }:
if !stdenv.lib.versionAtLeast conduit.version "1.0"
then conduit
@ -8,9 +8,9 @@ stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-conduit-lwt-${version}";
inherit (conduit) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder ppx_sexp_conv ];
buildInputs = [ ocaml findlib dune ppx_sexp_conv ];
propagatedBuildInputs = [ conduit lwt3 ];
buildPhase = "jbuilder build -p conduit-lwt";
buildPhase = "dune build -p conduit-lwt";
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, jbuilder, findlib, sexplib, ocplib-endian }:
{ stdenv, fetchurl, ocaml, dune, findlib, sexplib, ocplib-endian }:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-cstruct-${version}";
@ -10,13 +10,13 @@ stdenv.mkDerivation rec {
unpackCmd = "tar -xjf $curSrc";
buildInputs = [ ocaml jbuilder findlib ];
buildInputs = [ ocaml dune findlib ];
propagatedBuildInputs = [ sexplib ocplib-endian ];
buildPhase = "jbuilder build -p cstruct";
buildPhase = "dune build -p cstruct";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Access C-like structures directly from OCaml";

View file

@ -9,5 +9,5 @@ stdenv.mkDerivation rec {
buildInputs = cstruct.buildInputs ++ [ ppx_tools_versioned ];
propagatedBuildInputs = [ cstruct ];
buildPhase = "jbuilder build -p ppx_cstruct";
buildPhase = "dune build -p ppx_cstruct";
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, jbuilder }:
{ stdenv, fetchurl, ocaml, findlib, dune }:
stdenv.mkDerivation rec {
version = "2.1";
@ -10,11 +10,11 @@ stdenv.mkDerivation rec {
unpackCmd = "tar -xjf $src";
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
buildPhase = "jbuilder build -p csv";
buildPhase = "dune build -p csv";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "A pure OCaml library to read and write CSV files";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, jbuilder }:
{ stdenv, fetchurl, ocaml, findlib, dune }:
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
@ -14,11 +14,11 @@ stdenv.mkDerivation rec {
unpackCmd = "tar xjf $src";
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
buildPhase = "jbuilder build -p dtoa";
buildPhase = "dune build -p dtoa";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
hardeningDisable = stdenv.lib.optional stdenv.isDarwin "strictoverflow";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchzip, ocaml, findlib, jbuilder, jsonm, hex, sexplib }:
{ stdenv, fetchzip, ocaml, findlib, dune, jsonm, hex, sexplib }:
let version = "0.6.0"; in
@ -10,12 +10,12 @@ stdenv.mkDerivation {
sha256 = "18g64lhai0bz65b9fil12vlgfpwa9b5apj7x6d7n4zzm18qfazvj";
};
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
propagatedBuildInputs = [ jsonm hex sexplib ];
buildPhase = "jbuilder build -p ezjsonm";
buildPhase = "dune build -p ezjsonm";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "An easy interface on top of the Jsonm library";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, alcotest }:
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, alcotest }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "faraday is not available for OCaml ${ocaml.version}"
@ -15,14 +15,14 @@ stdenv.mkDerivation rec {
sha256 = "1kql0il1frsbx6rvwqd7ahi4m14ik6la5an6c2w4x7k00ndm4d7n";
};
buildInputs = [ ocaml findlib jbuilder alcotest ];
buildInputs = [ ocaml findlib dune alcotest ];
buildPhase = "jbuilder build -p faraday";
buildPhase = "dune build -p faraday";
doCheck = true;
checkPhase = "jbuilder runtest";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Serialization library built for speed and memory efficiency";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }:
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, ocurl, cryptokit, ocaml_extlib, yojson, ocamlnet, xmlm }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "gapi-ocaml is not available for OCaml ${ocaml.version}"
@ -13,10 +13,10 @@ stdenv.mkDerivation rec {
rev = "v${version}";
sha256 = "0qgsy51bhkpfgl5rdnjw4bqs5fbh2w4vwrfbl8y3lh1wrqmnwci4";
};
buildInputs = [ ocaml jbuilder findlib ];
buildInputs = [ ocaml dune findlib ];
propagatedBuildInputs = [ ocurl cryptokit ocaml_extlib yojson ocamlnet xmlm ];
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "OCaml client for google services";

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, git, cohttp-lwt
{ stdenv, ocaml, findlib, dune, git, cohttp-lwt
, alcotest, mtime, nocrypto
}:
@ -6,16 +6,16 @@ stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-git-http-${version}";
inherit (git) version src;
buildInputs = [ ocaml findlib jbuilder alcotest mtime nocrypto ];
buildInputs = [ ocaml findlib dune alcotest mtime nocrypto ];
propagatedBuildInputs = [ git cohttp-lwt ];
buildPhase = "jbuilder build -p git-http";
buildPhase = "dune build -p git-http";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
doCheck = true;
checkPhase = "jbuilder runtest -p git-http";
checkPhase = "dune runtest -p git-http";
meta = {
description = "Client implementation of the Smart HTTP Git protocol in pure OCaml";

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, git-http
{ stdenv, ocaml, findlib, dune, git-http
, cohttp-lwt-unix
, tls, cmdliner, mtime
}:
@ -7,13 +7,13 @@ stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-git-unix-${version}";
inherit (git-http) version src;
buildInputs = [ ocaml findlib jbuilder cmdliner mtime ];
buildInputs = [ ocaml findlib dune cmdliner mtime ];
propagatedBuildInputs = [ cohttp-lwt-unix git-http tls ];
buildPhase = "jbuilder build -p git-unix";
buildPhase = "dune build -p git-unix";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Unix backend for the Git protocol(s)";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, astring, decompress, fmt, hex, logs, mstruct, ocaml_lwt, ocamlgraph, uri
, alcotest, mtime, nocrypto
}:
@ -14,16 +14,16 @@ stdenv.mkDerivation rec {
sha256 = "0r1bxpxjjnl9hh8xbabsxl7svzvd19hfy73a2y1m4kljmw64dpfh";
};
buildInputs = [ ocaml findlib jbuilder alcotest mtime nocrypto ];
buildInputs = [ ocaml findlib dune alcotest mtime nocrypto ];
propagatedBuildInputs = [ astring decompress fmt hex logs mstruct ocaml_lwt ocamlgraph uri ];
buildPhase = "jbuilder build -p git";
buildPhase = "dune build -p git";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
doCheck = true;
checkPhase = "jbuilder runtest -p git";
checkPhase = "dune runtest -p git";
meta = {
description = "Git format and protocol in pure OCaml";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, jbuilder, cstruct }:
{ stdenv, fetchurl, ocaml, findlib, dune, cstruct }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "hex is not available for OCaml ${ocaml.version}"
@ -16,13 +16,13 @@ stdenv.mkDerivation {
unpackCmd = "tar -xjf $curSrc";
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
propagatedBuildInputs = [ cstruct ];
buildPhase = "jbuilder build -p hex";
buildPhase = "dune build -p hex";
doCheck = true;
checkPhase = "jbuilder runtest";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Mininal OCaml library providing hexadecimal converters";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, angstrom, faraday, alcotest
}:
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "0i2r004ihj00hd97475y8nhjqjln58xx087zcjl0dfp0n7q80517";
};
buildInputs = [ ocaml findlib jbuilder alcotest ];
buildInputs = [ ocaml findlib dune alcotest ];
propagatedBuildInputs = [ angstrom faraday ];
buildPhase = "dune build -p httpaf";
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
doCheck = true;
checkPhase = "dune runtest -p httpaf";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "A high-performance, memory-efficient, and scalable web server for OCaml";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchzip, ocaml, findlib, jbuilder, configurator, cstruct }:
{ stdenv, fetchzip, ocaml, findlib, dune, configurator, cstruct }:
let version = "2.0.1"; in
@ -10,10 +10,10 @@ stdenv.mkDerivation {
sha256 = "1rw04dwrlx5hah5dkjf7d63iff82j9cifr8ifjis5pdwhgwcff8i";
};
buildInputs = [ ocaml findlib jbuilder configurator ];
buildInputs = [ ocaml findlib dune configurator ];
propagatedBuildInputs = [ cstruct ];
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
homepage = https://github.com/mirage/io-page;

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, ocaml, ocamlbuild, findlib
, jbuilder, sexplib, ppx_sexp_conv
, dune, sexplib, ppx_sexp_conv
}:
stdenv.mkDerivation rec {
@ -11,10 +11,10 @@ stdenv.mkDerivation rec {
sha256 = "1amb1pbm9ybpxy6190qygpj6nmbzzs2r6vx4xh5r6v89szx9rfxw";
};
buildInputs = [ ocaml findlib ocamlbuild jbuilder ];
buildInputs = [ ocaml findlib ocamlbuild dune ];
propagatedBuildInputs = [ ppx_sexp_conv sexplib ];
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = with stdenv.lib; {
homepage = https://github.com/mirage/ocaml-ipaddr;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, jbuilder, findlib, defaultVersion ? "0.11.0" }:
{ stdenv, fetchFromGitHub, ocaml, dune, findlib, defaultVersion ? "0.11.0" }:
{ name, version ? defaultVersion, buildInputs ? [], hash, meta, ...}@args:
@ -16,9 +16,9 @@ stdenv.mkDerivation (args // {
sha256 = hash;
};
buildInputs = [ ocaml jbuilder findlib ] ++ buildInputs;
buildInputs = [ ocaml dune findlib ] ++ buildInputs;
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
license = stdenv.lib.licenses.asl20;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libev, ocaml, findlib, jbuilder
{ stdenv, fetchurl, libev, ocaml, findlib, dune
, zed, lwt_log, lwt_react
}:
@ -13,13 +13,13 @@ stdenv.mkDerivation rec {
sha256 = "1hy5ryagqclgdm9lzh1qil5mrynlypv7mn6qm858hdcnmz9zzn0l";
};
buildInputs = [ libev ocaml findlib jbuilder ];
buildInputs = [ libev ocaml findlib dune ];
propagatedBuildInputs = [ zed lwt_log lwt_react ];
buildPhase = "jbuilder build -p lambda-term";
buildPhase = "dune build -p lambda-term";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
hasSharedObjects = true;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, jbuilder, findlib, result }:
{ stdenv, fetchFromGitHub, ocaml, dune, findlib, result }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "linenoise is not available for OCaml ${ocaml.version}"
@ -14,10 +14,10 @@ stdenv.mkDerivation rec {
sha256 = "1h6rqfgmhmd7p5z8yhk6zkbrk4yzw1v2fgwas2b7g3hqs6y0xj0q";
};
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
propagatedBuildInputs = [ result ];
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "OCaml bindings to linenoise";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchzip, pkgconfig, ncurses, libev, jbuilder
{ stdenv, fetchzip, pkgconfig, ncurses, libev, dune
, ocaml, findlib, cppo
, ocaml-migrate-parsetree, ppx_tools_versioned, result
, withP4 ? true
@ -19,14 +19,14 @@ stdenv.mkDerivation rec {
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ ncurses ocaml findlib jbuilder cppo
buildInputs = [ ncurses ocaml findlib dune cppo
ocaml-migrate-parsetree ppx_tools_versioned ]
++ stdenv.lib.optional withP4 camlp4;
propagatedBuildInputs = [ libev result ];
installPhase = ''
ocaml src/util/install_filter.ml
${jbuilder.installPhase}
${dune.installPhase}
'';
meta = {

View file

@ -1,16 +1,16 @@
{ stdenv, jbuilder, ocaml, findlib, lwt, ppx_tools_versioned }:
{ stdenv, dune, ocaml, findlib, lwt, ppx_tools_versioned }:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-lwt_ppx-${lwt.version}";
inherit (lwt) src;
buildInputs = [ jbuilder ocaml findlib ppx_tools_versioned ];
buildInputs = [ dune ocaml findlib ppx_tools_versioned ];
propagatedBuildInputs = [ lwt ];
buildPhase = "jbuilder build -p lwt_ppx";
installPhase = "${jbuilder.installPhase} lwt_ppx.install";
buildPhase = "dune build -p lwt_ppx";
installPhase = "${dune.installPhase} lwt_ppx.install";
meta = {
description = "Ppx syntax extension for Lwt";

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, lwt }:
{ stdenv, ocaml, findlib, dune, lwt }:
stdenv.mkDerivation rec {
version = "1.0.0";
@ -6,13 +6,13 @@ stdenv.mkDerivation rec {
inherit (lwt) src;
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
propagatedBuildInputs = [ lwt ];
buildPhase = "jbuilder build -p lwt_log";
buildPhase = "dune build -p lwt_log";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Lwt logging library (deprecated)";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchzip, ocaml, findlib, jbuilder, ssl, lwt }:
{ stdenv, fetchzip, ocaml, findlib, dune, ssl, lwt }:
stdenv.mkDerivation rec {
version = "1.1.2";
@ -9,10 +9,10 @@ stdenv.mkDerivation rec {
sha256 = "1q0an3djqjxv83v3iswi7m81braqx93kcrcwrxwmf6jzhdm4pn15";
};
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
propagatedBuildInputs = [ ssl lwt ];
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
homepage = "https://github.com/aantron/lwt_ssl";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, cstruct
}:
@ -17,11 +17,11 @@ stdenv.mkDerivation rec {
sha256 = "1p4ygwzs3n1fj4apfib0z0sabpph21bkq1dgjk4bsa59pq4prncm";
};
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
propagatedBuildInputs = [ cstruct ];
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "A thin mutable layer on top of cstruct";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, jbuilder, result }:
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, dune, result }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "ocaml-migrate-parsetree is not available for OCaml ${ocaml.version}"
@ -15,10 +15,10 @@ stdenv.mkDerivation rec {
sha256 = "05kbgs9n1x64fk6g3wbjnwjd17w10k3k8dzglnc45xg4hr7z651n";
};
buildInputs = [ ocaml findlib ocamlbuild jbuilder ];
buildInputs = [ ocaml findlib ocamlbuild dune ];
propagatedBuildInputs = [ result ];
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Convert OCaml parsetrees between different major versions";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, jbuilder, alcotest
{ stdenv, fetchurl, ocaml, findlib, dune, alcotest
, ocaml-migrate-parsetree
}:
@ -13,14 +13,14 @@ stdenv.mkDerivation rec {
unpackCmd = "tar xjf $curSrc";
buildInputs = [ ocaml findlib jbuilder alcotest ocaml-migrate-parsetree ];
buildInputs = [ ocaml findlib dune alcotest ocaml-migrate-parsetree ];
buildPhase = "dune build -p ppx_blob";
doCheck = true;
checkPhase = "dune runtest -p ppx_blob";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = with stdenv.lib; {
homepage = https://github.com/johnwhitington/ppx_blob;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder }:
{ stdenv, fetchFromGitHub, ocaml, findlib, dune }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "ppx_derivers is not available for OCaml ${ocaml.version}"
@ -15,9 +15,9 @@ stdenv.mkDerivation rec {
sha256 = "0bnhihl1w31as5w2czly1v3d6pbir9inmgsjg2cj6aaj9v1dzd85";
};
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Shared [@@deriving] plugin registry";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, jbuilder, ocaml-migrate-parsetree }:
{ stdenv, fetchurl, ocaml, findlib, dune, ocaml-migrate-parsetree }:
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
@ -14,11 +14,11 @@ stdenv.mkDerivation rec {
unpackCmd = "tar xjf $src";
buildInputs = [ ocaml findlib jbuilder ocaml-migrate-parsetree ];
buildInputs = [ ocaml findlib dune ocaml-migrate-parsetree ];
buildPhase = "jbuilder build -p ppx_gen_rec";
buildPhase = "dune build -p ppx_gen_rec";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = with stdenv.lib; {
homepage = https://github.com/flowtype/ocaml-ppx_gen_rec;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio
}:
@ -13,15 +13,15 @@ stdenv.mkDerivation rec {
sha256 = "0csp49jh7zgjnqh46mxbf322whlbmgy7v1a12nvxh97qg6i5fvsy";
};
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
propagatedBuildInputs = [
ocaml-compiler-libs ocaml-migrate-parsetree ppx_derivers stdio
];
buildPhase = "jbuilder build";
buildPhase = "dune build";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Comprehensive ppx tool set";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchzip, ocaml, findlib, jbuilder, ounit, seq }:
{ stdenv, fetchzip, ocaml, findlib, dune, ounit, seq }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "re is not available for OCaml ${ocaml.version}"
@ -13,13 +13,13 @@ stdenv.mkDerivation rec {
sha256 = "0ch6hvmm4ym3w2vghjxf3ka5j1023a37980fqi4zcb7sx756z20i";
};
buildInputs = [ ocaml findlib jbuilder ounit ];
buildInputs = [ ocaml findlib dune ounit ];
propagatedBuildInputs = [ seq ];
doCheck = true;
checkPhase = "jbuilder runtest";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
homepage = https://github.com/ocaml/ocaml-re;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, jbuilder, benchmark }:
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, dune, benchmark }:
let param =
if stdenv.lib.versionAtLeast ocaml.version "4.03"
@ -6,11 +6,11 @@ let param =
version = "0.6";
url = " https://github.com/Chris00/ocaml-rope/releases/download/0.6/rope-0.6.tbz";
sha256 = "06pkbnkad2ck50jn59ggwv154yd9vb01abblihvam6p27m4za1pc";
buildInputs = [ jbuilder ];
buildInputs = [ dune ];
extra = {
unpackCmd = "tar -xjf $curSrc";
buildPhase = "jbuilder build -p rope";
inherit (jbuilder) installPhase;
buildPhase = "dune build -p rope";
inherit (dune) installPhase;
};
} else {
version = "0.5";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, qtest, result }:
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, qtest, result }:
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
then throw "sequence is not available for OCaml ${ocaml.version}"
@ -16,13 +16,13 @@ stdenv.mkDerivation {
sha256 = "08j37nldw47syq3yw4mzhhvya43knl0d7biddp0q9hwbaxhzgi44";
};
buildInputs = [ ocaml findlib jbuilder qtest ];
buildInputs = [ ocaml findlib dune qtest ];
propagatedBuildInputs = [ result ];
doCheck = true;
checkPhase = "jbuilder runtest";
checkPhase = "dune runtest";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
homepage = https://github.com/c-cube/sequence;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, jbuilder, ocaml_lwt
{ stdenv, fetchurl, ocaml, findlib, dune, ocaml_lwt
, lwt_ppx, ocaml-migrate-parsetree, ppx_tools_versioned, csv, ocaml_sqlite3
}:
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "0z0bkzi1mh0m39alzr2ds7hjpfxffx6azpfsj2wpaxrg64ks8ypd";
};
buildInputs = [ ocaml findlib jbuilder lwt_ppx ocaml-migrate-parsetree ppx_tools_versioned ];
buildInputs = [ ocaml findlib dune lwt_ppx ocaml-migrate-parsetree ppx_tools_versioned ];
propagatedBuildInputs = [ ocaml_lwt csv ocaml_sqlite3 ];
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
doCheck = true;
checkPhase = "dune runtest -p sqlexpr";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Type-safe, convenient SQLite database access";

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, sqlexpr, ounit
{ stdenv, ocaml, findlib, dune, sqlexpr, ounit
, ppx_core, ppx_tools_versioned, re, lwt_ppx
}:
@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ppx_sqlexpr-${version}";
inherit (sqlexpr) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder sqlexpr ounit ppx_core ppx_tools_versioned re lwt_ppx ];
buildInputs = [ ocaml findlib dune sqlexpr ounit ppx_core ppx_tools_versioned re lwt_ppx ];
buildPhase = "dune build -p ppx_sqlexpr";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, jbuilder, ppx_sexp_conv, ounit
{ stdenv, fetchurl, ocaml, findlib, dune, ppx_sexp_conv, ounit
, re, sexplib, stringext
}:
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
unpackCmd = "tar -xjf $curSrc";
buildInputs = [ ocaml findlib jbuilder ounit ];
buildInputs = [ ocaml findlib dune ounit ];
propagatedBuildInputs = [ ppx_sexp_conv re sexplib stringext ];
buildPhase = "jbuilder build";
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
doCheck = true;
checkPhase = "jbuilder runtest";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
homepage = "https://github.com/mirage/ocaml-uri";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, jbuilder }:
{ stdenv, fetchurl, ocaml, findlib, dune }:
assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
@ -14,13 +14,11 @@ stdenv.mkDerivation rec {
unpackCmd = "tar xjf $src";
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
buildPhase = "jbuilder build -p wtf8";
buildPhase = "dune build -p wtf8";
inherit (jbuilder) installPhase;
createFindLibDestdir = true;
inherit (dune) installPhase;
meta = with stdenv.lib; {
homepage = https://github.com/flowtype/ocaml-wtf8;

View file

@ -1,12 +1,12 @@
{ stdenv, fetchzip, ocaml, findlib, jbuilder, cppo, easy-format, biniou }:
{ stdenv, fetchzip, ocaml, findlib, dune, cppo, easy-format, biniou }:
let
pname = "yojson";
param =
if stdenv.lib.versionAtLeast ocaml.version "4.02" then {
version = "1.4.1";
sha256 = "0nwsfkmqpyfab4rxq76q8ff7giyanghw08094jyrp275v99zdjr9";
buildInputs = [ jbuilder ];
extra = { inherit (jbuilder) installPhase; };
buildInputs = [ dune ];
extra = { inherit (dune) installPhase; };
} else {
version = "1.2.3";
sha256 = "10dvkndgwanvw4agbjln7kgb1n9s6lii7jw82kwxczl5rd1sgmvl";

View file

@ -1,14 +1,14 @@
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, camomile, react, jbuilder }:
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, camomile, react, dune }:
let param =
if stdenv.lib.versionAtLeast ocaml.version "4.02" then
{
version = "1.6";
sha256 = "00hhxcjf3bj3w2qm8nzs9x6vrqkadf4i0277s5whzy2rmiknj63v";
buildInputs = [ jbuilder ];
buildInputs = [ dune ];
extra = {
buildPhase = "jbuilder build -p zed";
inherit (jbuilder) installPhase; };
buildPhase = "dune build -p zed";
inherit (dune) installPhase; };
} else {
version = "1.4";
sha256 = "0d8qfy0qiydrrqi8qc9rcwgjigql6vx9gl4zp62jfz1lmjgb2a3w";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, jbuilder }:
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, dune }:
let
pname = "cppo";
webpage = "http://mjambon.com/${pname}.html";
@ -9,9 +9,9 @@ let param =
if stdenv.lib.versionAtLeast ocaml.version "4.02" then {
version = "1.6.4";
sha256 = "16mlwck0wngr5pmlr8dxc471zzhhcja3mv4xf4n8jm9nhb3iikvh";
buildInputs = [ jbuilder ];
buildInputs = [ dune ];
extra = {
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
};
} else {
version = "1.5.0";

View file

@ -1,13 +1,13 @@
{ stdenv, fetchFromGitHub, ocamlPackages, opaline }:
stdenv.mkDerivation rec {
name = "jbuilder-${version}";
version = "1.0.1";
name = "dune-${version}";
version = "1.1.1";
src = fetchFromGitHub {
owner = "ocaml";
repo = "dune";
rev = "${version}";
sha256 = "0k6r9qrbwlnb4rqwqys5fr7khwza7n7d8wpgl9jbb3xpag2zl3q9";
sha256 = "0v2pnxpmqsvrvidpwxvbsypzhqfdnjs5crjp9y61qi8nyj8d75zw";
};
buildInputs = with ocamlPackages; [ ocaml findlib ];
@ -16,8 +16,6 @@ stdenv.mkDerivation rec {
installPhase = "${opaline}/bin/opaline -prefix $out -libdir $OCAMLFIND_DESTDIR";
preFixup = "rm -rf $out/jbuilder";
meta = {
inherit (src.meta) homepage;
description = "Fast, portable and opinionated build system";

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, js_of_ocaml-compiler
{ stdenv, ocaml, findlib, dune, js_of_ocaml-compiler
, ocaml-migrate-parsetree, ppx_tools_versioned, uchar
}:
@ -7,11 +7,11 @@ stdenv.mkDerivation rec {
inherit (js_of_ocaml-compiler) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder ocaml-migrate-parsetree ppx_tools_versioned ];
buildInputs = [ ocaml findlib dune ocaml-migrate-parsetree ppx_tools_versioned ];
postPatch = "patchShebangs lib/generate_stubs.sh";
propagatedBuildInputs = [ js_of_ocaml-compiler uchar ];
buildPhase = "jbuilder build -p js_of_ocaml";
buildPhase = "dune build -p js_of_ocaml";
}

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, js_of_ocaml-compiler
{ stdenv, ocaml, findlib, dune, js_of_ocaml-compiler
, camlp4, ocsigen_deriving
}:
@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
inherit (js_of_ocaml-compiler) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder camlp4 ocsigen_deriving ];
buildInputs = [ ocaml findlib dune camlp4 ocsigen_deriving ];
buildPhase = "jbuilder build -p js_of_ocaml-camlp4";
buildPhase = "dune build -p js_of_ocaml-camlp4";
}

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, cmdliner, cppo, yojson
}:
@ -17,13 +17,13 @@ stdenv.mkDerivation rec {
sha256 = "0dxxdxgrbg9xvvi3i627krnk6rb1ja0ypp2diwdkpnmy45wak9lv";
};
buildInputs = [ ocaml findlib jbuilder cmdliner cppo ];
buildInputs = [ ocaml findlib dune cmdliner cppo ];
propagatedBuildInputs = [ yojson ];
buildPhase = "jbuilder build -p js_of_ocaml-compiler";
buildPhase = "dune build -p js_of_ocaml-compiler";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
description = "Compiler from OCaml bytecode to Javascript";

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, js_of_ocaml-compiler, js_of_ocaml-ppx
{ stdenv, ocaml, findlib, dune, js_of_ocaml-compiler, js_of_ocaml-ppx
, ocaml-migrate-parsetree, ppx_tools_versioned
, js_of_ocaml, ocaml_lwt, lwt_log
}:
@ -8,9 +8,9 @@ stdenv.mkDerivation rec {
inherit (js_of_ocaml-compiler) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder js_of_ocaml-ppx ocaml-migrate-parsetree ppx_tools_versioned ];
buildInputs = [ ocaml findlib dune js_of_ocaml-ppx ocaml-migrate-parsetree ppx_tools_versioned ];
propagatedBuildInputs = [ js_of_ocaml ocaml_lwt lwt_log ];
buildPhase = "jbuilder build -p js_of_ocaml-lwt";
buildPhase = "dune build -p js_of_ocaml-lwt";
}

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, js_of_ocaml-compiler
{ stdenv, ocaml, findlib, dune, js_of_ocaml-compiler
, ocamlbuild
}:
@ -7,9 +7,9 @@ stdenv.mkDerivation rec {
inherit (js_of_ocaml-compiler) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
propagatedBuildInputs = [ ocamlbuild ];
buildPhase = "jbuilder build -p js_of_ocaml-ocamlbuild";
buildPhase = "dune build -p js_of_ocaml-ocamlbuild";
}

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, js_of_ocaml-compiler
{ stdenv, ocaml, findlib, dune, js_of_ocaml-compiler
, ocaml-migrate-parsetree, ppx_tools_versioned
, js_of_ocaml
}:
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
inherit (js_of_ocaml-compiler) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder ocaml-migrate-parsetree ppx_tools_versioned js_of_ocaml ];
buildInputs = [ ocaml findlib dune ocaml-migrate-parsetree ppx_tools_versioned js_of_ocaml ];
buildPhase = "jbuilder build -p js_of_ocaml-ppx";
buildPhase = "dune build -p js_of_ocaml-ppx";
}

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, js_of_ocaml-compiler
{ stdenv, ocaml, findlib, dune, js_of_ocaml-compiler
, js_of_ocaml, ppx_deriving
}:
@ -7,9 +7,9 @@ stdenv.mkDerivation rec {
inherit (js_of_ocaml-compiler) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder ];
buildInputs = [ ocaml findlib dune ];
propagatedBuildInputs = [ js_of_ocaml ppx_deriving ];
buildPhase = "jbuilder build -p js_of_ocaml-ppx_deriving_json";
buildPhase = "dune build -p js_of_ocaml-ppx_deriving_json";
}

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, js_of_ocaml-compiler
{ stdenv, ocaml, findlib, dune, js_of_ocaml-compiler
, js_of_ocaml-ppx, ocaml-migrate-parsetree, ppx_tools_versioned
, js_of_ocaml, reactivedata, tyxml
}:
@ -8,9 +8,9 @@ stdenv.mkDerivation rec {
inherit (js_of_ocaml-compiler) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder js_of_ocaml-ppx ocaml-migrate-parsetree ppx_tools_versioned ];
buildInputs = [ ocaml findlib dune js_of_ocaml-ppx ocaml-migrate-parsetree ppx_tools_versioned ];
propagatedBuildInputs = [ js_of_ocaml reactivedata tyxml ];
buildPhase = "jbuilder build -p js_of_ocaml-tyxml";
buildPhase = "dune build -p js_of_ocaml-tyxml";
}

View file

@ -1,6 +1,7 @@
{ stdenv, fetchzip, ncurses
, ocamlPackages
, jbuilder }:
, dune
}:
stdenv.mkDerivation rec {
version = "1.1.5";
@ -10,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "1d4i6aanrafgrgk4mh154k6lkwk0b6mh66rykz33awlf5pfqd8yv";
};
buildInputs = [ ncurses jbuilder ]
buildInputs = [ ncurses dune ]
++ (with ocamlPackages; [ ocaml ocp-build findlib lablgtk ocp-index ]);
configurePhase = ''
@ -20,7 +21,7 @@ stdenv.mkDerivation rec {
buildPhase = "jbuilder build";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
homepage = https://www.typerex.org/ocaml-top.html;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchzip, ocaml, findlib, jbuilder, ocp-build, cmdliner }:
{ stdenv, fetchzip, ocaml, findlib, dune, ocp-build, cmdliner }:
let inherit (stdenv.lib) getVersion versionAtLeast; in
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ ocp-build ];
buildInputs = [ ocaml findlib cmdliner ];
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = with stdenv.lib; {
homepage = http://typerex.ocamlpro.com/ocp-indent.html;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, ocp-build, ocp-indent, cmdliner, re }:
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, ocp-build, ocp-indent, cmdliner, re }:
stdenv.mkDerivation rec {
@ -12,12 +12,12 @@ stdenv.mkDerivation rec {
sha256 = "0p367aphz9w71qbm3y47qwhgqmyai28l96i1ifb6kg7awph5qmj3";
};
buildInputs = [ ocaml findlib jbuilder ocp-build cmdliner re ];
buildInputs = [ ocaml findlib dune ocp-build cmdliner re ];
propagatedBuildInputs = [ ocp-indent ];
buildPhase = "jbuilder build -p ocp-index";
buildPhase = "dune build -p ocp-index";
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
meta = {
homepage = http://typerex.ocamlpro.com/ocp-index.html;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, jbuilder
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, dune
, lambdaTerm, cppo, makeWrapper
}:
@ -16,11 +16,11 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ ocaml findlib ocamlbuild cppo jbuilder ];
buildInputs = [ ocaml findlib ocamlbuild cppo dune ];
propagatedBuildInputs = [ lambdaTerm ];
inherit (jbuilder) installPhase;
inherit (dune) installPhase;
postFixup =
let

View file

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, ocamlPackages, makeWrapper, writeScript
, jbuilder, python3, rsync, fetchpatch }:
, dune, python3, rsync, fetchpatch }:
let
# Manually set version - the setup script requires
# hg and git + keeping the .git directory around.
@ -39,7 +39,7 @@ let
ppx_deriving_yojson
ocamlbuild
ppxlib
jbuilder
dune
ounit
# python36Packages.python36Full # TODO
];

View file

@ -131,6 +131,7 @@ mapAliases ({
iana_etc = iana-etc; # added 2017-03-08
idea = jetbrains; # added 2017-04-03
inotifyTools = inotify-tools;
jbuilder = dune; # added 2018-09-09
joseki = apache-jena-fuseki; # added 2016-02-28
json_glib = json-glib; # added 2018-02-25
kdiff3-qt5 = kdiff3; # added 2017-02-18

View file

@ -1243,6 +1243,8 @@ with pkgs;
dtrx = callPackage ../tools/compression/dtrx { };
dune = callPackage ../development/tools/ocaml/dune { };
duperemove = callPackage ../tools/filesystems/duperemove { };
dylibbundler = callPackage ../tools/misc/dylibbundler { };
@ -1403,8 +1405,6 @@ with pkgs;
interlock = callPackage ../servers/interlock {};
jbuilder = callPackage ../development/tools/ocaml/jbuilder { };
kapacitor = callPackage ../servers/monitoring/kapacitor { };
kisslicer = callPackage ../tools/misc/kisslicer { };