Merge pull request #306202 from vbgl/ocaml-phylogenetics-0.2.0

ocamlPackages.phylogenetics: unstable-2022-05-06 → 0.2.0
This commit is contained in:
Ulrik Strid 2024-04-26 08:11:44 +02:00 committed by GitHub
commit e35cb7bf9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 157 additions and 14 deletions

View File

@ -0,0 +1,23 @@
{ lib
, buildDunePackage
, fetchurl
}:
buildDunePackage rec {
pname = "binning";
version = "0.0.0";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/pveber/binning/releases/download/v${version}/binning-v${version}.tbz";
hash = "sha256-eG+xctsbc7lQ5pFOUtJ8rjNW/06gygwLADq7yc8Yf/c=";
};
meta = {
description = "A datastructure to accumulate values in bins";
license = lib.licenses.cecill-b;
homepage = "https://github.com/pveber/binning/";
maintainers = [ lib.maintainers.vbgl ];
};
}

View File

@ -0,0 +1,56 @@
{ lib
, buildDunePackage
, fetchurl
, angstrom-unix
, binning
, ocaml-crunch
, camlzip
, core_kernel
, core_unix
, csvfields
, fmt
, gsl
, ppx_csv_conv
, ppx_deriving
, rresult
, tyxml
, uri
, vg
}:
buildDunePackage rec {
pname = "biotk";
version = "0.2.0";
minimalOCamlVersion = "4.13";
src = fetchurl {
url = "https://github.com/pveber/biotk/releases/download/v${version}/biotk-${version}.tbz";
hash = "sha256-FQvbVj5MmraSN6AmOckKgJ/LB14E/pCsPvPvNppcv7A=";
};
nativeBuildInputs = [ ocaml-crunch ];
buildInputs = [ ppx_csv_conv ];
propagatedBuildInputs = [
angstrom-unix
binning
camlzip
core_kernel
core_unix
csvfields
fmt
gsl
ppx_deriving
rresult
tyxml
uri
vg
];
meta = {
description = "Toolkit for bioinformatics in OCaml";
license = lib.licenses.cecill-c;
};
}

View File

@ -582,6 +582,13 @@ with self;
propagatedBuildInputs = [ ppxlib base ];
};
ppx_conv_func = janePackage {
pname = "ppx_conv_func";
hash = "sha256-61jX8yHZYOnMx1Jlqaq9zSOz25HLOa0Wv/iG6Hu82zI=";
meta.description = "Part of the Jane Street's PPX rewriters collection";
propagatedBuildInputs = [ ppxlib base ];
};
ppx_custom_printf = janePackage {
pname = "ppx_custom_printf";
hash = "1k8nmq6kwqz2wpkm9ymq749dz1vd8lxrjc711knp1wyz5935hnsv";
@ -597,6 +604,13 @@ with self;
propagatedBuildInputs = [ core_kernel ppxlib js_of_ocaml js_of_ocaml-ppx sedlex ];
};
ppx_csv_conv = janePackage {
pname = "ppx_csv_conv";
hash = "sha256-ctwgUs1buBZiNqac4760LhWd2/PMZRuxx8SE5T7yZ+g=";
meta.description = "Generate functions to read/write records in csv format";
propagatedBuildInputs = [ csvfields ppx_conv_func ];
};
ppx_disable_unused_warnings = janePackage {
pname = "ppx_disable_unused_warnings";
hash = "0sb5i4v7p9df2bxk66rjs30k9fqdrwsq1jgykjv6wyrx2d9bv955";

View File

@ -698,6 +698,13 @@ with self;
propagatedBuildInputs = [ ppxlib base ];
};
ppx_conv_func = janePackage {
pname = "ppx_conv_func";
hash = "sha256-HPHSZHdR9ll+7EbWc36shTdRPFYB0lkApidk+XL3clI=";
meta.description = "Part of the Jane Street's PPX rewriters collection";
propagatedBuildInputs = [ ppxlib base ];
};
ppx_custom_printf = janePackage {
pname = "ppx_custom_printf";
hash = "sha256-V30ijRgcma/rwysPxNAFnuJIb7XFrfi7mfjJxN+rSak=";
@ -712,6 +719,13 @@ with self;
propagatedBuildInputs = [ async async_unix core_kernel core_unix ppxlib js_of_ocaml js_of_ocaml-ppx sedlex virtual_dom ];
};
ppx_csv_conv = janePackage {
pname = "ppx_csv_conv";
hash = "sha256-RdPcDPLzoSf45Zeon3f4HcEvlwB6Q6sAINX3LHmjmj8=";
meta.description = "Generate functions to read/write records in csv format";
propagatedBuildInputs = [ csvfields ppx_conv_func ];
};
ppx_demo = janePackage {
pname = "ppx_demo";
hash = "sha256-t/jz94YpwmorhWlcuflIZe0l85cESE62L9I7NMASVWM=";

View File

@ -1,32 +1,27 @@
{ lib
, ocaml
, buildDunePackage
, fetchFromGitHub
, fetchurl
, ppx_deriving
, bppsuite
, alcotest
, angstrom-unix
, biocaml
, biotk
, core
, gsl
, lacaml
, menhir
, menhirLib
, printbox-text
, yojson
}:
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
"phylogenetics is not compatible with OCaml ${ocaml.version}"
buildDunePackage rec {
pname = "phylogenetics";
version = "unstable-2022-05-06";
version = "0.2.0";
src = fetchFromGitHub {
owner = "biocaml";
repo = pname;
rev = "cd7c624d0f98e31b02933ca4511b9809b26d35b5";
sha256 = "sha256:0w0xyah3hj05hxg1rsa40hhma3dm1cyq0zvnjrihhf22laxap7ga";
src = fetchurl {
url = "https://github.com/biocaml/phylogenetics/releases/download/v${version}/phylogenetics-${version}.tbz";
hash = "sha256-JFpYp3pyW7PrBjqCwwDZxkJPA84dp6Qs8rOPvHPY92o=";
};
minimalOCamlVersion = "4.08";
@ -36,13 +31,14 @@ buildDunePackage rec {
nativeBuildInputs = [ menhir ];
propagatedBuildInputs = [
angstrom-unix
biocaml
biotk
core
gsl
lacaml
menhirLib
ppx_deriving
printbox-text
yojson
];
checkPhase = ''

View File

@ -0,0 +1,26 @@
{ lib
, buildDunePackage
, fetchurl
, stdlib-shims
}:
buildDunePackage rec {
pname = "streaming";
version = "0.8.0";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/odis-labs/streaming/releases/download/${version}/streaming-${version}.tbz";
hash = "sha256-W+3GYZpsLj1SnQhuSmjXdi/85fMajWpz4b7x5W0bnJs=";
};
propagatedBuildInputs = [ stdlib-shims ];
meta = {
homepage = "https://odis-labs.github.io/streaming";
license = lib.licenses.isc;
description = "Fast, safe and composable streaming abstractions";
maintainers = [ lib.maintainers.vbgl ];
};
}

View File

@ -88,8 +88,12 @@ let
biniou = callPackage ../development/ocaml-modules/biniou { };
binning = callPackage ../development/ocaml-modules/binning { };
biocaml = janeStreet_0_15.biocaml;
biotk = janeStreet_0_15.biotk;
bisect_ppx = callPackage ../development/ocaml-modules/bisect_ppx { };
bistro = callPackage ../development/ocaml-modules/bistro { };
@ -819,10 +823,18 @@ let
cfstream = self.cfstream.override { inherit core_kernel; };
};
biotk = let
angstrom = self.angstrom.override { inherit ppx_let; };
in callPackage ../development/ocaml-modules/biotk {
angstrom-unix = self.angstrom-unix.override { inherit angstrom; };
ppx_deriving = self.ppx_deriving.override { inherit (jsDeps) ppxlib; };
uri = self.uri.override { inherit angstrom; };
vg = self.vg.override { htmlcBackend = false; };
};
phylogenetics = let
angstrom = self.angstrom.override { inherit ppx_let; };
in callPackage ../development/ocaml-modules/phylogenetics {
inherit biocaml;
ppx_deriving = self.ppx_deriving.override { inherit (jsDeps) ppxlib; };
angstrom-unix = self.angstrom-unix.override { inherit angstrom; };
};
@ -1715,6 +1727,8 @@ let
stog_asy = callPackage ../applications/misc/stog/asy.nix { };
stog_markdown = callPackage ../applications/misc/stog/markdown.nix { };
streaming = callPackage ../development/ocaml-modules/streaming { };
stringext = callPackage ../development/ocaml-modules/stringext { };
syslog = callPackage ../development/ocaml-modules/syslog { };