Files
2026-05-12 13:28:33 -05:00

56 lines
1.1 KiB
Nix

{
lib,
buildDunePackage,
fetchurl,
bppsuite,
alcotest,
angstrom-unix,
biotk,
core,
gsl,
lacaml,
menhir,
menhirLib,
printbox-text,
}:
buildDunePackage (finalAttrs: {
pname = "phylogenetics";
version = "0.3.0";
src = fetchurl {
url = "https://github.com/biocaml/phylogenetics/releases/download/v${finalAttrs.version}/phylogenetics-${finalAttrs.version}.tbz";
hash = "sha256-3oZ9fMAXqOQ02rQ+8W8PZJWXOJLNe2qERrGOeTk3BKg=";
};
minimalOCamlVersion = "4.08";
nativeCheckInputs = [ bppsuite ];
checkInputs = [ alcotest ];
nativeBuildInputs = [ menhir ];
propagatedBuildInputs = [
angstrom-unix
biotk
core
gsl
lacaml
menhirLib
printbox-text
];
checkPhase = ''
runHook preCheck
dune build @app/fulltest
runHook postCheck
'';
doCheck = true;
meta = {
description = "Algorithms and datastructures for phylogenetics";
homepage = "https://github.com/biocaml/phylogenetics";
license = lib.licenses.cecill-b;
maintainers = [ lib.maintainers.bcdarwin ];
mainProgram = "phylosim";
};
})