diff options
author | Ben Darwin <bcdarwin@gmail.com> | 2020-05-27 12:41:36 -0400 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2020-05-28 09:08:51 +0200 |
commit | 7547926b81940e8b44fc13ff152c62349f6de297 (patch) | |
tree | abceb87c03d6ad0430a7473bfc44ed57ebc7d4d5 /pkgs/development/ocaml-modules | |
parent | 203d0644b47497b10c1670ef561013a61360f60a (diff) | |
download | nixlib-7547926b81940e8b44fc13ff152c62349f6de297.tar nixlib-7547926b81940e8b44fc13ff152c62349f6de297.tar.gz nixlib-7547926b81940e8b44fc13ff152c62349f6de297.tar.bz2 nixlib-7547926b81940e8b44fc13ff152c62349f6de297.tar.lz nixlib-7547926b81940e8b44fc13ff152c62349f6de297.tar.xz nixlib-7547926b81940e8b44fc13ff152c62349f6de297.tar.zst nixlib-7547926b81940e8b44fc13ff152c62349f6de297.zip |
ocamlPackages.biocaml: patch for -safe-string compilation with Ocaml 4.10
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/biocaml/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/ocaml-modules/biocaml/default.nix b/pkgs/development/ocaml-modules/biocaml/default.nix index de54c24b7742..be62a1c6d2cd 100644 --- a/pkgs/development/ocaml-modules/biocaml/default.nix +++ b/pkgs/development/ocaml-modules/biocaml/default.nix @@ -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 ]; |