ocamlPackages.biocaml: patch for -safe-string compilation with Ocaml 4.10

This commit is contained in:
Ben Darwin 2020-05-27 12:41:36 -04:00 committed by Vincent Laporte
parent 203d0644b4
commit 7547926b81

View file

@ -1,4 +1,4 @@
{ stdenv, buildDunePackage, fetchFromGitHub
{ stdenv, buildDunePackage, fetchFromGitHub, fetchpatch
, ounit, async, base64, camlzip, cfstream
, core, ppx_jane, ppx_sexp_conv, rresult, uri, xmlm }:
@ -17,6 +17,12 @@ buildDunePackage rec {
sha256 = "1f19nc8ld0iv45jjnsvaah3ddj88s2n9wj8mrz726kzg85cfr8xj";
};
# fix compilation without and disable -unsafe-string, needed for Ocaml 4.10:
patches = [ (fetchpatch {
url = "https://github.com/biocaml/biocaml/commit/597fa7b0d203684e45ffe03f56c74335b6173ffc.patch";
sha256 = "0b8jdg215cv2k4y3ww7vak2ag5v6v9w8b76qjivr5d1qxz47mqxv";
}) ];
buildInputs = [ ppx_jane ppx_sexp_conv ];
checkInputs = [ ounit ];
propagatedBuildInputs = [ async base64 camlzip cfstream core rresult uri xmlm ];