diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2014-11-08 15:56:32 +0100 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2014-11-08 15:56:40 +0100 |
commit | 83221f3886c8b74f78edbad5a1541de0837a0f24 (patch) | |
tree | f9a53d659e562acf0637ffb42f013aebf460a947 /pkgs/development/tools/ocaml | |
parent | 7f3c95e6b7d40df043652b2fca54b0997e7a1937 (diff) | |
parent | aa2fd47e9dee4e36e4bd494601e0ae5d9b40a78f (diff) | |
download | nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar.gz nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar.bz2 nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar.lz nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar.xz nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.tar.zst nixlib-83221f3886c8b74f78edbad5a1541de0837a0f24.zip |
Merge branch 'master' into staging
Makes the build more useful: - Disabled hybrid iso, makes installer tests pass again - Imagemagick fixes to the "Illegal instruction" thing
Diffstat (limited to 'pkgs/development/tools/ocaml')
-rw-r--r-- | pkgs/development/tools/ocaml/camlp5/5.15.nix | 3 | ||||
-rw-r--r-- | pkgs/development/tools/ocaml/ocamlscript/Makefile.patch | 45 | ||||
-rw-r--r-- | pkgs/development/tools/ocaml/ocamlscript/default.nix | 2 |
3 files changed, 48 insertions, 2 deletions
diff --git a/pkgs/development/tools/ocaml/camlp5/5.15.nix b/pkgs/development/tools/ocaml/camlp5/5.15.nix index 97099d1b4920..adfdb4bd204c 100644 --- a/pkgs/development/tools/ocaml/camlp5/5.15.nix +++ b/pkgs/development/tools/ocaml/camlp5/5.15.nix @@ -37,7 +37,8 @@ stdenv.mkDerivation { It also provides parsing and printing tools. ''; homepage = "${webpage}"; - license = "BSD"; + license = stdenv.lib.licenses.bsd3; + branch = "5"; platforms = ocaml.meta.platforms; maintainers = [ stdenv.lib.maintainers.z77z diff --git a/pkgs/development/tools/ocaml/ocamlscript/Makefile.patch b/pkgs/development/tools/ocaml/ocamlscript/Makefile.patch index 1a4a6a225a49..4fc887c070d7 100644 --- a/pkgs/development/tools/ocaml/ocamlscript/Makefile.patch +++ b/pkgs/development/tools/ocaml/ocamlscript/Makefile.patch @@ -9,6 +9,15 @@ STDBIN = $(shell dirname `which ocamlfind`) ifndef PREFIX PREFIX = $(shell dirname $(STDBIN)) +@@ -15,7 +17,7 @@ + endif + export BINDIR + +-PACKS = unix str ++PACKS = unix str findlib + PP = camlp4o -I . -parser pa_tryfinally.cmo -parser pa_opt.cmo + export PP + @@ -36,11 +38,11 @@ common: version.ml @@ -23,3 +32,39 @@ cp pa_tryfinally310.cmo pa_tryfinally.cmo && \ cp pa_tryfinally310.cmi pa_tryfinally.cmi +--- a/main.ml 2014-11-08 09:05:12.516401313 +0000 ++++ b/main.ml 2014-11-08 09:09:59.801311230 +0000 +@@ -250,9 +250,15 @@ + Sys.getcwd ()) + | `File script_name -> "", get_dir script_name in + ++ let findlibdir = ++ Filename.( ++ concat (Findlib.package_directory "findlib") parent_dir_name ++ ) in ++ + let file, oc = Filename.open_temp_file "meta" ".ml" in + fprintf oc "\ + #%i %S;; ++#directory \"%s\";; + #use \"topfind\";; + #require \"ocamlscript\";; + Ocamlscript.Common.verbose := %s;; +@@ -261,7 +267,7 @@ + open Ocamlscript;; + open Utils;; + #%i %S;;\n" +- pos source verbose script_dir extra_args trash pos source; ++ pos source findlibdir verbose script_dir extra_args trash pos source; + + List.iter (output_line oc) lines; + +@@ -544,6 +550,7 @@ + exit compilation_status + + let _ = ++ Findlib.init (); + try main () + with Failure s -> + eprintf "ocamlscript: %s\n%!" s; + diff --git a/pkgs/development/tools/ocaml/ocamlscript/default.nix b/pkgs/development/tools/ocaml/ocamlscript/default.nix index 50b9c496abaf..1b37c21fdfa7 100644 --- a/pkgs/development/tools/ocaml/ocamlscript/default.nix +++ b/pkgs/development/tools/ocaml/ocamlscript/default.nix @@ -6,7 +6,7 @@ stdenv.mkDerivation { sha256 = "1v1i24gijxwris8w4hi95r9swld6dm7jbry0zp72767a3g5ivlrd"; }; - buildInputs = [ ocaml findlib camlp4 ]; + propagatedBuildInputs = [ ocaml findlib camlp4 ]; patches = [ ./Makefile.patch ]; |