ocamlPackages.findlib: 1.9.3 → 1.9.6
This commit is contained in:
parent
fd15a97ef6
commit
f14d4f4df2
2 changed files with 13 additions and 12 deletions
|
@ -1,16 +1,16 @@
|
||||||
{ lib, stdenv, fetchurl, fetchpatch, m4, ncurses, ocaml, writeText }:
|
{ lib, stdenv, fetchurl, ncurses, ocaml, writeText }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ocaml-findlib";
|
pname = "ocaml${ocaml.version}-findlib";
|
||||||
version = "1.9.3";
|
version = "1.9.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://download.camlcity.org/download/findlib-${version}.tar.gz";
|
url = "http://download.camlcity.org/download/findlib-${version}.tar.gz";
|
||||||
sha256 = "sha256:0hfcwamcvinmww59b5i4yxbf0kxyzkp5qv3d1c7ybn9q52vgq463";
|
sha256 = "sha256-LfmWJ5rha2Bttf9Yefk9v63giY258aPoL3+EX6opMKI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [m4 ocaml];
|
nativeBuildInputs = [ ocaml ];
|
||||||
buildInputs = [ ncurses ];
|
buildInputs = lib.optional (lib.versionOlder ocaml.version "4.07") ncurses;
|
||||||
|
|
||||||
patches = [ ./ldconf.patch ./install_topfind.patch ];
|
patches = [ ./ldconf.patch ./install_topfind.patch ];
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
--- a/src/findlib/Makefile
|
--- a/src/findlib/Makefile
|
||||||
+++ b/src/findlib/Makefile
|
+++ b/src/findlib/Makefile
|
||||||
@@ -123,7 +123,7 @@ clean:
|
@@ -123,8 +123,8 @@
|
||||||
install: all
|
install: all
|
||||||
mkdir -p "$(prefix)$(OCAML_SITELIB)/$(NAME)"
|
$(INSTALLDIR) "$(DESTDIR)$(prefix)$(OCAML_SITELIB)/$(NAME)"
|
||||||
mkdir -p "$(prefix)$(OCAMLFIND_BIN)"
|
$(INSTALLDIR) "$(DESTDIR)$(prefix)$(OCAMLFIND_BIN)"
|
||||||
- test $(INSTALL_TOPFIND) -eq 0 || cp topfind "$(prefix)$(OCAML_CORE_STDLIB)"
|
- test $(INSTALL_TOPFIND) -eq 0 || $(INSTALLDIR) "$(DESTDIR)$(prefix)$(OCAML_CORE_STDLIB)"
|
||||||
+ test $(INSTALL_TOPFIND) -eq 0 || cp topfind "$(prefix)$(OCAML_SITELIB)"
|
- test $(INSTALL_TOPFIND) -eq 0 || $(INSTALLFILE) topfind "$(DESTDIR)$(prefix)$(OCAML_CORE_STDLIB)/"
|
||||||
|
+ test $(INSTALL_TOPFIND) -eq 0 || $(INSTALLDIR) "$(DESTDIR)$(prefix)$(OCAML_SITELIB)"
|
||||||
|
+ test $(INSTALL_TOPFIND) -eq 0 || $(INSTALLFILE) topfind "$(DESTDIR)$(prefix)$(OCAML_SITELIB)/"
|
||||||
files=`$(SH) $(TOP)/tools/collect_files $(TOP)/Makefile.config \
|
files=`$(SH) $(TOP)/tools/collect_files $(TOP)/Makefile.config \
|
||||||
findlib.cmi findlib.mli findlib.cma findlib.cmxa findlib$(LIB_SUFFIX) findlib.cmxs \
|
findlib.cmi findlib.mli findlib.cma findlib.cmxa findlib$(LIB_SUFFIX) findlib.cmxs \
|
||||||
findlib_config.cmi findlib_config.ml topfind.cmi topfind.mli \
|
findlib_config.cmi findlib_config.ml topfind.cmi topfind.mli \
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue