|
|
|
@ -1,30 +1,50 @@ |
|
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, ppx_deriving |
|
|
|
|
, alcotest, angstrom-unix, biocaml, gnuplot, gsl, lacaml, menhir, owl, printbox }: |
|
|
|
|
{ lib |
|
|
|
|
, buildDunePackage |
|
|
|
|
, fetchurl |
|
|
|
|
, ppx_deriving |
|
|
|
|
, bppsuite |
|
|
|
|
, alcotest |
|
|
|
|
, angstrom-unix |
|
|
|
|
, biocaml |
|
|
|
|
, core |
|
|
|
|
, gsl |
|
|
|
|
, lacaml |
|
|
|
|
, menhir |
|
|
|
|
, menhirLib |
|
|
|
|
, printbox |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
buildDunePackage rec { |
|
|
|
|
pname = "phylogenetics"; |
|
|
|
|
version = "unstable-2020-11-23"; |
|
|
|
|
version = "0.0.0"; |
|
|
|
|
|
|
|
|
|
useDune2 = true; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "biocaml"; |
|
|
|
|
repo = pname; |
|
|
|
|
rev = "e6e10efa0a3a8fd61bf4ab69e91a09549cc1ded6"; |
|
|
|
|
sha256 = "0pmypzp0rvlpzm8zpbcfkphwnhrpyfwfv44kshvx2f8nslmksh8c"; |
|
|
|
|
src = fetchurl { |
|
|
|
|
url = "https://github.com/biocaml/phylogenetics/releases/download/v${version}/${pname}-${version}.tbz"; |
|
|
|
|
sha256 = "sha256:0knfh2s0jfnsc0vsq5yw5xla7m7i98xd0qv512dyh3jhkh7m00l9"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.08"; # e.g., uses Float.min |
|
|
|
|
minimalOCamlVersion = "4.08"; |
|
|
|
|
|
|
|
|
|
checkInputs = [ alcotest ]; |
|
|
|
|
checkInputs = [ alcotest bppsuite ]; |
|
|
|
|
buildInputs = [ menhir ]; |
|
|
|
|
propagatedBuildInputs = [ angstrom-unix biocaml gnuplot gsl lacaml owl ppx_deriving printbox ]; |
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
angstrom-unix |
|
|
|
|
biocaml |
|
|
|
|
core |
|
|
|
|
gsl |
|
|
|
|
lacaml |
|
|
|
|
menhirLib |
|
|
|
|
ppx_deriving |
|
|
|
|
printbox |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
doCheck = false; # many tests require bppsuite |
|
|
|
|
doCheck = true; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
inherit (src.meta) homepage; |
|
|
|
|
description = "Bioinformatics library for Ocaml"; |
|
|
|
|
homepage = "https://github.com/biocaml/phylogenetics"; |
|
|
|
|
description = "Algorithms and datastructures for phylogenetics"; |
|
|
|
|
maintainers = [ maintainers.bcdarwin ]; |
|
|
|
|
license = licenses.cecill-b; |
|
|
|
|
}; |
|
|
|
|