about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/phylogenetics/default.nix
blob: 1cb348a41656e60a199b2526068a204407fa6876 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{ lib
, buildDunePackage
, fetchurl
, ppx_deriving
, bppsuite
, alcotest
, angstrom-unix
, biocaml
, core
, gsl
, lacaml
, menhir
, menhirLib
, printbox-text
}:

buildDunePackage rec {
  pname = "phylogenetics";
  version = "0.0.0";

  useDune2 = true;

  src = fetchurl {
    url = "https://github.com/biocaml/phylogenetics/releases/download/v${version}/${pname}-${version}.tbz";
    sha256 = "sha256:0knfh2s0jfnsc0vsq5yw5xla7m7i98xd0qv512dyh3jhkh7m00l9";
  };

  # Ensure compatibility with printbox ≥ 0.6
  preConfigure = ''
    substituteInPlace lib/dune --replace printbox printbox-text
  '';

  minimalOCamlVersion = "4.08";

  checkInputs = [ alcotest bppsuite ];
  buildInputs = [ menhir ];
  propagatedBuildInputs = [
    angstrom-unix
    biocaml
    core
    gsl
    lacaml
    menhirLib
    ppx_deriving
    printbox-text
  ];

  doCheck = true;

  meta = with lib; {
    homepage = "https://github.com/biocaml/phylogenetics";
    description = "Algorithms and datastructures for phylogenetics";
    maintainers = [ maintainers.bcdarwin ];
    license = licenses.cecill-b;
  };
}