Skip to content

Commit 24e0ade

Browse files
committed
ocamlPackages.findlib: 1.9.6 → 1.9.7
1 parent cf69fc2 commit 24e0ade

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

pkgs/development/tools/ocaml/findlib/default.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@
22

33
stdenv.mkDerivation rec {
44
pname = "ocaml${ocaml.version}-findlib";
5-
version = "1.9.6";
5+
version = "1.9.7";
66

77
src = fetchurl {
88
url = "http://download.camlcity.org/download/findlib-${version}.tar.gz";
9-
sha256 = "sha256-LfmWJ5rha2Bttf9Yefk9v63giY258aPoL3+EX6opMKI=";
9+
hash = "sha256-zNgiAI8bh6vVahL/f0rxlaDNouO8AROSF3miBcl5Hik=";
1010
};
1111

1212
nativeBuildInputs = [ ocaml ];
1313
buildInputs = lib.optional (lib.versionOlder ocaml.version "4.07") ncurses;
1414

1515
patches = [ ./ldconf.patch ./install_topfind.patch ];
1616

17+
postPatch = ''
18+
substituteInPlace src/bytes/Makefile --replace-warn OCAMLOPT_SHARED OCAMLOPT
19+
'';
20+
1721
dontAddPrefix=true;
1822
dontAddStaticConfigureFlags = true;
1923
configurePlatforms = [];
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
--- a/src/findlib/Makefile
22
+++ b/src/findlib/Makefile
3-
@@ -123,8 +123,8 @@
3+
@@ -134,8 +134,8 @@
44
install: all
55
$(INSTALLDIR) "$(DESTDIR)$(prefix)$(OCAML_SITELIB)/$(NAME)"
66
$(INSTALLDIR) "$(DESTDIR)$(prefix)$(OCAMLFIND_BIN)"
77
- test $(INSTALL_TOPFIND) -eq 0 || $(INSTALLDIR) "$(DESTDIR)$(prefix)$(OCAML_CORE_STDLIB)"
8-
- test $(INSTALL_TOPFIND) -eq 0 || $(INSTALLFILE) topfind "$(DESTDIR)$(prefix)$(OCAML_CORE_STDLIB)/"
8+
- test $(INSTALL_TOPFIND) -eq 0 || $(CP) topfind "$(DESTDIR)$(prefix)$(OCAML_CORE_STDLIB)/"
99
+ test $(INSTALL_TOPFIND) -eq 0 || $(INSTALLDIR) "$(DESTDIR)$(prefix)$(OCAML_SITELIB)"
10-
+ test $(INSTALL_TOPFIND) -eq 0 || $(INSTALLFILE) topfind "$(DESTDIR)$(prefix)$(OCAML_SITELIB)/"
10+
+ test $(INSTALL_TOPFIND) -eq 0 || $(CP) topfind "$(DESTDIR)$(prefix)$(OCAML_SITELIB)/"
1111
files=`$(SH) $(TOP)/tools/collect_files $(TOP)/Makefile.config \
1212
findlib.cmi findlib.mli findlib.cma findlib.cmxa findlib$(LIB_SUFFIX) findlib.cmxs \
1313
findlib_config.cmi findlib_config.ml topfind.cmi topfind.mli \

0 commit comments

Comments
 (0)