diff --git a/pkgs/applications/networking/google-drive-ocamlfuse/default.nix b/pkgs/applications/networking/google-drive-ocamlfuse/default.nix index 87ef5f2a41a2..ff099a909c75 100644 --- a/pkgs/applications/networking/google-drive-ocamlfuse/default.nix +++ b/pkgs/applications/networking/google-drive-ocamlfuse/default.nix @@ -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/; diff --git a/pkgs/development/compilers/reason/default.nix b/pkgs/development/compilers/reason/default.nix index f4cc1cf2b650..81c935fc421f 100644 --- a/pkgs/development/compilers/reason/default.nix +++ b/pkgs/development/compilers/reason/default.nix @@ -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 \ diff --git a/pkgs/development/ocaml-modules/alcotest/default.nix b/pkgs/development/ocaml-modules/alcotest/default.nix index 000ff8285c53..8723b6a1f1ff 100644 --- a/pkgs/development/ocaml-modules/alcotest/default.nix +++ b/pkgs/development/ocaml-modules/alcotest/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/angstrom/default.nix b/pkgs/development/ocaml-modules/angstrom/default.nix index 97baca62e724..0c00dc2ff24e 100644 --- a/pkgs/development/ocaml-modules/angstrom/default.nix +++ b/pkgs/development/ocaml-modules/angstrom/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/atd/default.nix b/pkgs/development/ocaml-modules/atd/default.nix index 52a1fc36921c..d5cd38bba728 100644 --- a/pkgs/development/ocaml-modules/atd/default.nix +++ b/pkgs/development/ocaml-modules/atd/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/bigstringaf/default.nix b/pkgs/development/ocaml-modules/bigstringaf/default.nix index 21a0e3943923..fc9a5379b178 100644 --- a/pkgs/development/ocaml-modules/bigstringaf/default.nix +++ b/pkgs/development/ocaml-modules/bigstringaf/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/biniou/default.nix b/pkgs/development/ocaml-modules/biniou/default.nix index 97c4750002e6..439fce3bfd5b 100644 --- a/pkgs/development/ocaml-modules/biniou/default.nix +++ b/pkgs/development/ocaml-modules/biniou/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/bitstring/default.nix b/pkgs/development/ocaml-modules/bitstring/default.nix index 13424272bcf8..93bcb3cb1e99 100644 --- a/pkgs/development/ocaml-modules/bitstring/default.nix +++ b/pkgs/development/ocaml-modules/bitstring/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/camlimages/default.nix b/pkgs/development/ocaml-modules/camlimages/default.nix index def710f3f1b0..b5ef173c9ff8 100644 --- a/pkgs/development/ocaml-modules/camlimages/default.nix +++ b/pkgs/development/ocaml-modules/camlimages/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/camomile/default.nix b/pkgs/development/ocaml-modules/camomile/default.nix index fc0ecfc1502f..53c45d17854c 100644 --- a/pkgs/development/ocaml-modules/camomile/default.nix +++ b/pkgs/development/ocaml-modules/camomile/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/cohttp/default.nix b/pkgs/development/ocaml-modules/cohttp/default.nix index 962525b47e42..79dc919556ae 100644 --- a/pkgs/development/ocaml-modules/cohttp/default.nix +++ b/pkgs/development/ocaml-modules/cohttp/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix b/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix index c526a101dd9d..6489a583198c 100644 --- a/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix +++ b/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix @@ -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"; } diff --git a/pkgs/development/ocaml-modules/cohttp/lwt.nix b/pkgs/development/ocaml-modules/cohttp/lwt.nix index 21bea646d721..1630bfd131e4 100644 --- a/pkgs/development/ocaml-modules/cohttp/lwt.nix +++ b/pkgs/development/ocaml-modules/cohttp/lwt.nix @@ -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"; } diff --git a/pkgs/development/ocaml-modules/conduit/default.nix b/pkgs/development/ocaml-modules/conduit/default.nix index 98ac997383c7..fdfd2bed1f15 100644 --- a/pkgs/development/ocaml-modules/conduit/default.nix +++ b/pkgs/development/ocaml-modules/conduit/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/conduit/lwt-unix.nix b/pkgs/development/ocaml-modules/conduit/lwt-unix.nix index 5f33bbc42c10..b4357979de75 100644 --- a/pkgs/development/ocaml-modules/conduit/lwt-unix.nix +++ b/pkgs/development/ocaml-modules/conduit/lwt-unix.nix @@ -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"; } diff --git a/pkgs/development/ocaml-modules/conduit/lwt.nix b/pkgs/development/ocaml-modules/conduit/lwt.nix index 8ee3d827ecc1..5b085239cfd0 100644 --- a/pkgs/development/ocaml-modules/conduit/lwt.nix +++ b/pkgs/development/ocaml-modules/conduit/lwt.nix @@ -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"; } diff --git a/pkgs/development/ocaml-modules/cstruct/default.nix b/pkgs/development/ocaml-modules/cstruct/default.nix index 0f5380f9a41f..1a5a992f2be1 100644 --- a/pkgs/development/ocaml-modules/cstruct/default.nix +++ b/pkgs/development/ocaml-modules/cstruct/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/cstruct/ppx.nix b/pkgs/development/ocaml-modules/cstruct/ppx.nix index 9d19e1751e23..1696e200750c 100644 --- a/pkgs/development/ocaml-modules/cstruct/ppx.nix +++ b/pkgs/development/ocaml-modules/cstruct/ppx.nix @@ -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"; } diff --git a/pkgs/development/ocaml-modules/csv/default.nix b/pkgs/development/ocaml-modules/csv/default.nix index 804cbb8ea858..6c6f8a68f814 100644 --- a/pkgs/development/ocaml-modules/csv/default.nix +++ b/pkgs/development/ocaml-modules/csv/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/dtoa/default.nix b/pkgs/development/ocaml-modules/dtoa/default.nix index 9b6e56266143..a76e0c61450b 100644 --- a/pkgs/development/ocaml-modules/dtoa/default.nix +++ b/pkgs/development/ocaml-modules/dtoa/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/ezjsonm/default.nix b/pkgs/development/ocaml-modules/ezjsonm/default.nix index 1dcafe4c6a48..d38cf51c1531 100644 --- a/pkgs/development/ocaml-modules/ezjsonm/default.nix +++ b/pkgs/development/ocaml-modules/ezjsonm/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/faraday/default.nix b/pkgs/development/ocaml-modules/faraday/default.nix index 8f30ec519777..6af808654f53 100644 --- a/pkgs/development/ocaml-modules/faraday/default.nix +++ b/pkgs/development/ocaml-modules/faraday/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/gapi-ocaml/default.nix b/pkgs/development/ocaml-modules/gapi-ocaml/default.nix index 9c7be26503f5..bf7418ab27eb 100644 --- a/pkgs/development/ocaml-modules/gapi-ocaml/default.nix +++ b/pkgs/development/ocaml-modules/gapi-ocaml/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/git-http/default.nix b/pkgs/development/ocaml-modules/git-http/default.nix index 5e757b5b6727..c6abb0171b03 100644 --- a/pkgs/development/ocaml-modules/git-http/default.nix +++ b/pkgs/development/ocaml-modules/git-http/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/git-unix/default.nix b/pkgs/development/ocaml-modules/git-unix/default.nix index afeb3f1957b0..7a796ca089d5 100644 --- a/pkgs/development/ocaml-modules/git-unix/default.nix +++ b/pkgs/development/ocaml-modules/git-unix/default.nix @@ -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)"; diff --git a/pkgs/development/ocaml-modules/git/default.nix b/pkgs/development/ocaml-modules/git/default.nix index 0bf43174412c..777184ed2e94 100644 --- a/pkgs/development/ocaml-modules/git/default.nix +++ b/pkgs/development/ocaml-modules/git/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/hex/default.nix b/pkgs/development/ocaml-modules/hex/default.nix index 596f6a0fa531..71a9ebf9ad5d 100644 --- a/pkgs/development/ocaml-modules/hex/default.nix +++ b/pkgs/development/ocaml-modules/hex/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/httpaf/default.nix b/pkgs/development/ocaml-modules/httpaf/default.nix index bb712d40827e..e8638e4cf184 100644 --- a/pkgs/development/ocaml-modules/httpaf/default.nix +++ b/pkgs/development/ocaml-modules/httpaf/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/io-page/default.nix b/pkgs/development/ocaml-modules/io-page/default.nix index 72b7a3a54ce7..7c3d3a20c4d7 100644 --- a/pkgs/development/ocaml-modules/io-page/default.nix +++ b/pkgs/development/ocaml-modules/io-page/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/ipaddr/default.nix b/pkgs/development/ocaml-modules/ipaddr/default.nix index 2f0aa3429950..9a12fb44fffb 100644 --- a/pkgs/development/ocaml-modules/ipaddr/default.nix +++ b/pkgs/development/ocaml-modules/ipaddr/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/janestreet/janePackage.nix b/pkgs/development/ocaml-modules/janestreet/janePackage.nix index d17e595199e1..439c6f500bc9 100644 --- a/pkgs/development/ocaml-modules/janestreet/janePackage.nix +++ b/pkgs/development/ocaml-modules/janestreet/janePackage.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/lambda-term/default.nix b/pkgs/development/ocaml-modules/lambda-term/default.nix index 62b1f7b1a8e0..ba68c0463f8f 100644 --- a/pkgs/development/ocaml-modules/lambda-term/default.nix +++ b/pkgs/development/ocaml-modules/lambda-term/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/linenoise/default.nix b/pkgs/development/ocaml-modules/linenoise/default.nix index 53ac918c47e6..e7120ad38572 100644 --- a/pkgs/development/ocaml-modules/linenoise/default.nix +++ b/pkgs/development/ocaml-modules/linenoise/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/lwt/default.nix b/pkgs/development/ocaml-modules/lwt/default.nix index 739e6e1e43a8..c8371feb9052 100644 --- a/pkgs/development/ocaml-modules/lwt/default.nix +++ b/pkgs/development/ocaml-modules/lwt/default.nix @@ -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 = { diff --git a/pkgs/development/ocaml-modules/lwt/ppx.nix b/pkgs/development/ocaml-modules/lwt/ppx.nix index 3cf08d06f1eb..89e326557b5d 100644 --- a/pkgs/development/ocaml-modules/lwt/ppx.nix +++ b/pkgs/development/ocaml-modules/lwt/ppx.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/lwt_log/default.nix b/pkgs/development/ocaml-modules/lwt_log/default.nix index bdabe677a858..42ff2f26b7d3 100644 --- a/pkgs/development/ocaml-modules/lwt_log/default.nix +++ b/pkgs/development/ocaml-modules/lwt_log/default.nix @@ -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)"; diff --git a/pkgs/development/ocaml-modules/lwt_ssl/default.nix b/pkgs/development/ocaml-modules/lwt_ssl/default.nix index e53c835a2911..8fbec7cd4dff 100644 --- a/pkgs/development/ocaml-modules/lwt_ssl/default.nix +++ b/pkgs/development/ocaml-modules/lwt_ssl/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/mstruct/default.nix b/pkgs/development/ocaml-modules/mstruct/default.nix index 5682b75d6a14..9184975f0698 100644 --- a/pkgs/development/ocaml-modules/mstruct/default.nix +++ b/pkgs/development/ocaml-modules/mstruct/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/default.nix b/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/default.nix index 9a2af140e312..131f478d32ed 100644 --- a/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/default.nix +++ b/pkgs/development/ocaml-modules/ocaml-migrate-parsetree/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/ppx_blob/default.nix b/pkgs/development/ocaml-modules/ppx_blob/default.nix index 45dd73d4a321..72e0e5e121ad 100644 --- a/pkgs/development/ocaml-modules/ppx_blob/default.nix +++ b/pkgs/development/ocaml-modules/ppx_blob/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/ppx_derivers/default.nix b/pkgs/development/ocaml-modules/ppx_derivers/default.nix index 2dc7ef2b13e5..edd086067610 100644 --- a/pkgs/development/ocaml-modules/ppx_derivers/default.nix +++ b/pkgs/development/ocaml-modules/ppx_derivers/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/ppx_gen_rec/default.nix b/pkgs/development/ocaml-modules/ppx_gen_rec/default.nix index 39b0c53e0e94..4c458b983d33 100644 --- a/pkgs/development/ocaml-modules/ppx_gen_rec/default.nix +++ b/pkgs/development/ocaml-modules/ppx_gen_rec/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/ppxlib/default.nix b/pkgs/development/ocaml-modules/ppxlib/default.nix index 889e4acd2b50..656b650b13f7 100644 --- a/pkgs/development/ocaml-modules/ppxlib/default.nix +++ b/pkgs/development/ocaml-modules/ppxlib/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/re/default.nix b/pkgs/development/ocaml-modules/re/default.nix index 4994ceca7fb3..c4215b98a50f 100644 --- a/pkgs/development/ocaml-modules/re/default.nix +++ b/pkgs/development/ocaml-modules/re/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/rope/default.nix b/pkgs/development/ocaml-modules/rope/default.nix index dfb8c56c23e8..9e9ebea6b6a7 100644 --- a/pkgs/development/ocaml-modules/rope/default.nix +++ b/pkgs/development/ocaml-modules/rope/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/sequence/default.nix b/pkgs/development/ocaml-modules/sequence/default.nix index f06282df4fc6..59641458338f 100644 --- a/pkgs/development/ocaml-modules/sequence/default.nix +++ b/pkgs/development/ocaml-modules/sequence/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/sqlexpr/default.nix b/pkgs/development/ocaml-modules/sqlexpr/default.nix index c7ed72dc523c..cad4dcafb642 100644 --- a/pkgs/development/ocaml-modules/sqlexpr/default.nix +++ b/pkgs/development/ocaml-modules/sqlexpr/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/sqlexpr/ppx.nix b/pkgs/development/ocaml-modules/sqlexpr/ppx.nix index c15378e8240a..b908e173257c 100644 --- a/pkgs/development/ocaml-modules/sqlexpr/ppx.nix +++ b/pkgs/development/ocaml-modules/sqlexpr/ppx.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/uri/default.nix b/pkgs/development/ocaml-modules/uri/default.nix index c846cca1282f..4959ef7b34a7 100644 --- a/pkgs/development/ocaml-modules/uri/default.nix +++ b/pkgs/development/ocaml-modules/uri/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/wtf8/default.nix b/pkgs/development/ocaml-modules/wtf8/default.nix index 4cde95c0c4cc..58ce7778c417 100644 --- a/pkgs/development/ocaml-modules/wtf8/default.nix +++ b/pkgs/development/ocaml-modules/wtf8/default.nix @@ -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; diff --git a/pkgs/development/ocaml-modules/yojson/default.nix b/pkgs/development/ocaml-modules/yojson/default.nix index f494a8cf17cc..dfef72835cc1 100644 --- a/pkgs/development/ocaml-modules/yojson/default.nix +++ b/pkgs/development/ocaml-modules/yojson/default.nix @@ -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"; diff --git a/pkgs/development/ocaml-modules/zed/default.nix b/pkgs/development/ocaml-modules/zed/default.nix index 1ddb6d180405..d9dcf1a53851 100644 --- a/pkgs/development/ocaml-modules/zed/default.nix +++ b/pkgs/development/ocaml-modules/zed/default.nix @@ -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"; diff --git a/pkgs/development/tools/ocaml/cppo/default.nix b/pkgs/development/tools/ocaml/cppo/default.nix index d7d086e74f97..0611ec8d3bbd 100644 --- a/pkgs/development/tools/ocaml/cppo/default.nix +++ b/pkgs/development/tools/ocaml/cppo/default.nix @@ -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"; diff --git a/pkgs/development/tools/ocaml/jbuilder/default.nix b/pkgs/development/tools/ocaml/dune/default.nix similarity index 78% rename from pkgs/development/tools/ocaml/jbuilder/default.nix rename to pkgs/development/tools/ocaml/dune/default.nix index c30478132cf2..a9ed66a8efe1 100644 --- a/pkgs/development/tools/ocaml/jbuilder/default.nix +++ b/pkgs/development/tools/ocaml/dune/default.nix @@ -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"; diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/3.0.nix b/pkgs/development/tools/ocaml/js_of_ocaml/3.0.nix index d8c289015b2f..1307635abb99 100644 --- a/pkgs/development/tools/ocaml/js_of_ocaml/3.0.nix +++ b/pkgs/development/tools/ocaml/js_of_ocaml/3.0.nix @@ -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"; } diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix b/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix index 3caeabaae78b..139ffef186b5 100644 --- a/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix +++ b/pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix @@ -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"; } diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix b/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix index 798013045955..cd242b5bd377 100644 --- a/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix +++ b/pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix @@ -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"; diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/lwt.nix b/pkgs/development/tools/ocaml/js_of_ocaml/lwt.nix index 5ec8cca344d4..e7a31c1ce2e5 100644 --- a/pkgs/development/tools/ocaml/js_of_ocaml/lwt.nix +++ b/pkgs/development/tools/ocaml/js_of_ocaml/lwt.nix @@ -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"; } diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix b/pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix index 60ad695dc0bd..bf33b4e59e52 100644 --- a/pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix +++ b/pkgs/development/tools/ocaml/js_of_ocaml/ocamlbuild.nix @@ -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"; } diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/ppx.nix b/pkgs/development/tools/ocaml/js_of_ocaml/ppx.nix index 4f6b281c8b96..0649aee162a5 100644 --- a/pkgs/development/tools/ocaml/js_of_ocaml/ppx.nix +++ b/pkgs/development/tools/ocaml/js_of_ocaml/ppx.nix @@ -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"; } diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix b/pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix index 8f32887c5bf5..ddea73b3c766 100644 --- a/pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix +++ b/pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix @@ -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"; } diff --git a/pkgs/development/tools/ocaml/js_of_ocaml/tyxml.nix b/pkgs/development/tools/ocaml/js_of_ocaml/tyxml.nix index 041fd71f92fa..1ba9ddd0ab7f 100644 --- a/pkgs/development/tools/ocaml/js_of_ocaml/tyxml.nix +++ b/pkgs/development/tools/ocaml/js_of_ocaml/tyxml.nix @@ -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"; } diff --git a/pkgs/development/tools/ocaml/ocaml-top/default.nix b/pkgs/development/tools/ocaml/ocaml-top/default.nix index 744a136c9ef2..ddea2aa9784b 100644 --- a/pkgs/development/tools/ocaml/ocaml-top/default.nix +++ b/pkgs/development/tools/ocaml/ocaml-top/default.nix @@ -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; diff --git a/pkgs/development/tools/ocaml/ocp-indent/default.nix b/pkgs/development/tools/ocaml/ocp-indent/default.nix index 43898d250d91..2cffccdbfcdf 100644 --- a/pkgs/development/tools/ocaml/ocp-indent/default.nix +++ b/pkgs/development/tools/ocaml/ocp-indent/default.nix @@ -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; diff --git a/pkgs/development/tools/ocaml/ocp-index/default.nix b/pkgs/development/tools/ocaml/ocp-index/default.nix index 0a63ae805342..b041efefac77 100644 --- a/pkgs/development/tools/ocaml/ocp-index/default.nix +++ b/pkgs/development/tools/ocaml/ocp-index/default.nix @@ -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; diff --git a/pkgs/development/tools/ocaml/utop/default.nix b/pkgs/development/tools/ocaml/utop/default.nix index 1341e071842b..434f8b3af2ea 100644 --- a/pkgs/development/tools/ocaml/utop/default.nix +++ b/pkgs/development/tools/ocaml/utop/default.nix @@ -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 diff --git a/pkgs/development/tools/pyre/default.nix b/pkgs/development/tools/pyre/default.nix index b51f6344c9b7..c466d39eb4e1 100644 --- a/pkgs/development/tools/pyre/default.nix +++ b/pkgs/development/tools/pyre/default.nix @@ -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 ]; diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 441a8f8dcfb2..b8298b76d778 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -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 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0c0e485357c8..9722e945594e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };