mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Support installing topfind now
This commit is contained in:
parent
7c146f01e1
commit
6299baeb88
@ -14,7 +14,8 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [m4 ncurses ocaml];
|
||||
|
||||
patches = [ ./ldconf.patch ];
|
||||
patches = [ ./ldconf.patch ./install_topfind.patch ];
|
||||
patchFlags = "-p0";
|
||||
|
||||
dontAddPrefix=true;
|
||||
|
||||
@ -24,7 +25,6 @@ stdenv.mkDerivation {
|
||||
-mandir $out/share/man
|
||||
-sitelib $out/lib/ocaml/${ocaml_version}/site-lib
|
||||
-config $out/etc/findlib.conf
|
||||
-no-topfind
|
||||
)
|
||||
'';
|
||||
|
||||
|
12
pkgs/development/tools/ocaml/findlib/install_topfind.patch
Normal file
12
pkgs/development/tools/ocaml/findlib/install_topfind.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- src/findlib/Makefile
|
||||
+++ src/findlib/Makefile
|
||||
@@ -82,7 +82,7 @@ clean:
|
||||
install: all
|
||||
mkdir -p "$(prefix)$(OCAML_SITELIB)/$(NAME)"
|
||||
mkdir -p "$(prefix)$(OCAMLFIND_BIN)"
|
||||
- test $(INSTALL_TOPFIND) -eq 0 || cp topfind "$(prefix)$(OCAML_CORE_STDLIB)"
|
||||
+ test $(INSTALL_TOPFIND) -eq 0 || cp topfind "$(prefix)$(OCAML_SITELIB)"
|
||||
files=`$(TOP)/tools/collect_files $(TOP)/Makefile.config findlib.cmi findlib.mli findlib.cma topfind.cmi topfind.mli fl_package_base.mli fl_package_base.cmi fl_metascanner.mli fl_metascanner.cmi fl_metatoken.cmi findlib_top.cma findlib.cmxa findlib.a META` && \
|
||||
cp $$files "$(prefix)$(OCAML_SITELIB)/$(NAME)"
|
||||
f="ocamlfind$(EXEC_SUFFIX)"; { test -f ocamlfind_opt$(EXEC_SUFFIX) && f="ocamlfind_opt$(EXEC_SUFFIX)"; }; \
|
||||
|
Loading…
Reference in New Issue
Block a user