From 4168706d4fd35dc9c83d22725bede9b97b87750b Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 8 Oct 2016 08:44:25 +0200 Subject: [PATCH] OCaml modules: make explicit some dependencies to ocamlbuild --- pkgs/build-support/ocaml/default.nix | 4 ++-- pkgs/development/compilers/mezzo/default.nix | 4 ++-- pkgs/development/interpreters/eff/default.nix | 4 ++-- pkgs/development/ocaml-modules/ansiterminal/default.nix | 4 ++-- pkgs/development/ocaml-modules/base64/default.nix | 4 ++-- pkgs/development/ocaml-modules/batteries/default.nix | 4 ++-- pkgs/development/ocaml-modules/bolt/default.nix | 4 ++-- pkgs/development/ocaml-modules/cil/default.nix | 4 ++-- pkgs/development/ocaml-modules/cmdliner/default.nix | 4 ++-- pkgs/development/ocaml-modules/containers/default.nix | 4 ++-- pkgs/development/ocaml-modules/cryptokit/default.nix | 4 ++-- pkgs/development/ocaml-modules/csv/default.nix | 4 ++-- pkgs/development/ocaml-modules/dolog/default.nix | 4 ++-- pkgs/development/ocaml-modules/enumerate/default.nix | 4 ++-- pkgs/development/ocaml-modules/erm_xml/default.nix | 4 ++-- pkgs/development/ocaml-modules/erm_xmpp/default.nix | 4 ++-- pkgs/development/ocaml-modules/fileutils/default.nix | 4 ++-- pkgs/development/ocaml-modules/fix/default.nix | 4 ++-- pkgs/development/ocaml-modules/gen/default.nix | 4 ++-- pkgs/development/ocaml-modules/gg/default.nix | 4 ++-- pkgs/development/ocaml-modules/iso8601/default.nix | 4 ++-- pkgs/development/ocaml-modules/jsonm/default.nix | 4 ++-- pkgs/development/ocaml-modules/macaque/default.nix | 4 ++-- pkgs/development/ocaml-modules/magic-mime/default.nix | 4 ++-- pkgs/development/ocaml-modules/menhir/default.nix | 2 +- pkgs/development/ocaml-modules/menhir/generic.nix | 4 ++-- pkgs/development/ocaml-modules/ocaml-cairo2/default.nix | 4 ++-- pkgs/development/ocaml-modules/ocaml-text/default.nix | 4 ++-- pkgs/development/ocaml-modules/ocplib-endian/default.nix | 4 ++-- pkgs/development/ocaml-modules/odn/default.nix | 4 ++-- pkgs/development/ocaml-modules/optcomp/default.nix | 4 ++-- pkgs/development/ocaml-modules/otfm/default.nix | 4 ++-- pkgs/development/ocaml-modules/ounit/default.nix | 4 ++-- pkgs/development/ocaml-modules/pgocaml/default.nix | 4 ++-- pkgs/development/ocaml-modules/pprint/default.nix | 4 ++-- pkgs/development/ocaml-modules/qcheck/default.nix | 4 ++-- pkgs/development/ocaml-modules/qtest/default.nix | 4 ++-- pkgs/development/ocaml-modules/re/default.nix | 4 ++-- pkgs/development/ocaml-modules/react/default.nix | 4 ++-- pkgs/development/ocaml-modules/reactivedata/default.nix | 4 ++-- pkgs/development/ocaml-modules/safepass/default.nix | 4 ++-- pkgs/development/ocaml-modules/sequence/default.nix | 4 ++-- pkgs/development/ocaml-modules/sqlite3/default.nix | 4 ++-- pkgs/development/ocaml-modules/sqlite3EZ/default.nix | 4 ++-- pkgs/development/ocaml-modules/stringext/default.nix | 4 ++-- pkgs/development/ocaml-modules/topkg/default.nix | 4 ++-- pkgs/development/ocaml-modules/tsdl/default.nix | 4 ++-- pkgs/development/ocaml-modules/ulex/default.nix | 4 ++-- pkgs/development/ocaml-modules/uucd/default.nix | 4 ++-- pkgs/development/ocaml-modules/uucp/default.nix | 4 ++-- pkgs/development/ocaml-modules/uuidm/default.nix | 4 ++-- pkgs/development/ocaml-modules/uunf/default.nix | 4 ++-- pkgs/development/ocaml-modules/uuseg/default.nix | 4 ++-- pkgs/development/ocaml-modules/uutf/default.nix | 4 ++-- pkgs/development/ocaml-modules/xmlm/default.nix | 4 ++-- pkgs/development/ocaml-modules/zed/default.nix | 4 ++-- pkgs/development/tools/ocaml/cppo/default.nix | 4 ++-- pkgs/development/tools/ocaml/oasis/0.4.6.nix | 7 ++++--- pkgs/development/tools/ocaml/oasis/default.nix | 7 ++++--- pkgs/development/tools/ocaml/ocamlify/default.nix | 4 ++-- pkgs/development/tools/ocaml/ocamlmod/default.nix | 4 ++-- 61 files changed, 125 insertions(+), 123 deletions(-) diff --git a/pkgs/build-support/ocaml/default.nix b/pkgs/build-support/ocaml/default.nix index 54951dadf56..cc2001c66e2 100644 --- a/pkgs/build-support/ocaml/default.nix +++ b/pkgs/build-support/ocaml/default.nix @@ -1,4 +1,4 @@ -{ stdenv, writeText, ocaml, findlib, camlp4 }: +{ stdenv, writeText, ocaml, findlib, ocamlbuild, camlp4 }: { name, version, buildInputs ? [], createFindlibDestdir ? true, @@ -19,7 +19,7 @@ in stdenv.mkDerivation (args // { name = "ocaml-${name}-${version}"; - buildInputs = [ ocaml findlib camlp4 ] ++ buildInputs; + buildInputs = [ ocaml findlib ocamlbuild camlp4 ] ++ buildInputs; setupHook = if setupHook == null && hasSharedObjects then writeText "setupHook.sh" '' diff --git a/pkgs/development/compilers/mezzo/default.nix b/pkgs/development/compilers/mezzo/default.nix index 67e7c932e55..79dc479fae8 100644 --- a/pkgs/development/compilers/mezzo/default.nix +++ b/pkgs/development/compilers/mezzo/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, ocaml, findlib, menhir, yojson, ulex, pprint, fix, functory }: +{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, menhir, yojson, ulex, pprint, fix, functory }: let check-ocaml-version = with stdenv.lib; versionAtLeast (getVersion ocaml); @@ -17,7 +17,7 @@ stdenv.mkDerivation { sha256 = "0yck5r6di0935s3iy2mm9538jkf77ssr789qb06ms7sivd7g3ip6"; }; - buildInputs = [ ocaml findlib yojson menhir ulex pprint fix functory ]; + buildInputs = [ ocaml findlib ocamlbuild yojson menhir ulex pprint fix functory ]; # Sets warning 3 as non-fatal prePatch = stdenv.lib.optionalString (check-ocaml-version "4.02") '' diff --git a/pkgs/development/interpreters/eff/default.nix b/pkgs/development/interpreters/eff/default.nix index 566d7025e5c..9fc25ad46fd 100644 --- a/pkgs/development/interpreters/eff/default.nix +++ b/pkgs/development/interpreters/eff/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, ocaml, findlib, menhir, which }: +{ stdenv, fetchgit, ocaml, findlib, ocamlbuild, menhir, which }: let inherit (stdenv.lib) getVersion versionAtLeast; in @@ -14,7 +14,7 @@ stdenv.mkDerivation { sha256 = "0cqqrpvfw0nrk5d28mkzfvc8yzqxcss0k46bkmqhqjkqq886n2mm"; }; - buildInputs = [ ocaml findlib menhir which ]; + buildInputs = [ ocaml findlib ocamlbuild menhir which ]; doCheck = true; checkTarget = "test"; diff --git a/pkgs/development/ocaml-modules/ansiterminal/default.nix b/pkgs/development/ocaml-modules/ansiterminal/default.nix index 615e1d1b673..7edd0ddda5e 100644 --- a/pkgs/development/ocaml-modules/ansiterminal/default.nix +++ b/pkgs/development/ocaml-modules/ansiterminal/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, ocaml, findlib }: +{ stdenv, fetchurl, ocaml, findlib, ocamlbuild }: stdenv.mkDerivation { @@ -9,7 +9,7 @@ stdenv.mkDerivation { sha256 = "1j9kflv2i16vf9hy031cl6z8hv6791mjbhnd9bw07y1pswdlx1r6"; }; - buildInputs = [ ocaml findlib ]; + buildInputs = [ ocaml findlib ocamlbuild ]; configurePhase = "ocaml setup.ml -configure --prefix $out"; diff --git a/pkgs/development/ocaml-modules/base64/default.nix b/pkgs/development/ocaml-modules/base64/default.nix index aabb9f8a76a..8128dc1cb6f 100644 --- a/pkgs/development/ocaml-modules/base64/default.nix +++ b/pkgs/development/ocaml-modules/base64/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchzip, ocaml, findlib }: +{ stdenv, fetchzip, ocaml, findlib, ocamlbuild }: let version = "2.0.0"; in @@ -10,7 +10,7 @@ stdenv.mkDerivation { sha256 = "1nv55gwq5vaxmrcz9ja2s165b1p9fhcxszc1l76043gpa56qm4fs"; }; - buildInputs = [ ocaml findlib ]; + buildInputs = [ ocaml findlib ocamlbuild ]; createFindlibDestdir = true; diff --git a/pkgs/development/ocaml-modules/batteries/default.nix b/pkgs/development/ocaml-modules/batteries/default.nix index 0c01a946e5a..904a214c34f 100644 --- a/pkgs/development/ocaml-modules/batteries/default.nix +++ b/pkgs/development/ocaml-modules/batteries/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchzip, ocaml, findlib, qtest }: +{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, qtest }: let version = "2.5.2"; in @@ -10,7 +10,7 @@ stdenv.mkDerivation { sha256 = "01v7sp8vsqlfrmpji5pkrsjl43r3q8hk1a4z4lmyy9y2i0fqwl07"; }; - buildInputs = [ ocaml findlib qtest ]; + buildInputs = [ ocaml findlib ocamlbuild qtest ]; configurePhase = "true"; # Skip configure diff --git a/pkgs/development/ocaml-modules/bolt/default.nix b/pkgs/development/ocaml-modules/bolt/default.nix index cf8b21edb50..5d1fe8aa0d1 100644 --- a/pkgs/development/ocaml-modules/bolt/default.nix +++ b/pkgs/development/ocaml-modules/bolt/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, ocaml, findlib, which, camlp4 }: +{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, which, camlp4 }: let inherit (stdenv.lib) getVersion versionAtLeast; in @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { sha256 = "1c807wrpxra9sbb34lajhimwra28ldxv04m570567lh2b04n38zy"; }; - buildInputs = [ ocaml findlib which camlp4 ]; + buildInputs = [ ocaml findlib ocamlbuild which camlp4 ]; patchPhase = '' patch myocamlbuild.ml <