2020-05-27 18:41:36 +02:00
|
|
|
{ stdenv, buildDunePackage, fetchFromGitHub, fetchpatch
|
2019-11-25 16:53:58 +01:00
|
|
|
, ounit, async, base64, camlzip, cfstream
|
|
|
|
, core, ppx_jane, ppx_sexp_conv, rresult, uri, xmlm }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "biocaml";
|
2020-01-30 23:05:33 +01:00
|
|
|
version = "0.10.1";
|
2019-11-25 16:53:58 +01:00
|
|
|
|
2020-10-29 06:24:51 +01:00
|
|
|
useDune2 = true;
|
2019-11-25 16:53:58 +01:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-10-29 06:24:51 +01:00
|
|
|
owner = "biocaml";
|
2019-11-25 16:53:58 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-01-30 23:05:33 +01:00
|
|
|
sha256 = "1f19nc8ld0iv45jjnsvaah3ddj88s2n9wj8mrz726kzg85cfr8xj";
|
2019-11-25 16:53:58 +01:00
|
|
|
};
|
|
|
|
|
2020-05-27 18:41:36 +02:00
|
|
|
# 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";
|
|
|
|
}) ];
|
|
|
|
|
2019-11-25 16:53:58 +01:00
|
|
|
buildInputs = [ ppx_jane ppx_sexp_conv ];
|
|
|
|
checkInputs = [ ounit ];
|
|
|
|
propagatedBuildInputs = [ async base64 camlzip cfstream core rresult uri xmlm ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Bioinformatics library for Ocaml";
|
2020-01-30 23:05:33 +01:00
|
|
|
homepage = "http://${pname}.org";
|
2019-11-25 16:53:58 +01:00
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|