Skip to content

Commit

Permalink
ocamlPackages.findlib: 1.9.6 → 1.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Nov 14, 2024
1 parent cf69fc2 commit 24e0ade
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions pkgs/development/tools/ocaml/findlib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@

stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-findlib";
version = "1.9.6";
version = "1.9.7";

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

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

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

postPatch = ''
substituteInPlace src/bytes/Makefile --replace-warn OCAMLOPT_SHARED OCAMLOPT
'';

dontAddPrefix=true;
dontAddStaticConfigureFlags = true;
configurePlatforms = [];
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/tools/ocaml/findlib/install_topfind.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
--- a/src/findlib/Makefile
+++ b/src/findlib/Makefile
@@ -123,8 +123,8 @@
@@ -134,8 +134,8 @@
install: all
$(INSTALLDIR) "$(DESTDIR)$(prefix)$(OCAML_SITELIB)/$(NAME)"
$(INSTALLDIR) "$(DESTDIR)$(prefix)$(OCAMLFIND_BIN)"
- test $(INSTALL_TOPFIND) -eq 0 || $(INSTALLDIR) "$(DESTDIR)$(prefix)$(OCAML_CORE_STDLIB)"
- test $(INSTALL_TOPFIND) -eq 0 || $(INSTALLFILE) topfind "$(DESTDIR)$(prefix)$(OCAML_CORE_STDLIB)/"
- test $(INSTALL_TOPFIND) -eq 0 || $(CP) 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)/"
+ test $(INSTALL_TOPFIND) -eq 0 || $(CP) topfind "$(DESTDIR)$(prefix)$(OCAML_SITELIB)/"
files=`$(SH) $(TOP)/tools/collect_files $(TOP)/Makefile.config \
findlib.cmi findlib.mli findlib.cma findlib.cmxa findlib$(LIB_SUFFIX) findlib.cmxs \
findlib_config.cmi findlib_config.ml topfind.cmi topfind.mli \

0 comments on commit 24e0ade

Please sign in to comment.