2021-01-15 13:21:58 +00:00
|
|
|
{ fetchurl, lib, stdenv, ocaml, makeWrapper, ncurses }:
|
2014-04-15 13:23:07 +01:00
|
|
|
|
|
|
|
let version = "0.92"; in
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "megam";
|
|
|
|
inherit version;
|
2014-04-15 13:23:07 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://hal3.name/megam/megam_src.tgz";
|
|
|
|
sha256 = "dc0e9f59ff8513449fe3bd40b260141f89c88a4edf6ddc8b8a394c758e49724e";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./ocaml-includes.patch ./ocaml-3.12.patch ];
|
2021-01-15 13:21:58 +00:00
|
|
|
|
2014-04-15 13:23:07 +01:00
|
|
|
buildInputs = [ ocaml ncurses ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "CAML_INCLUDES=${ocaml}/lib/ocaml/caml" ];
|
2014-04-15 13:23:07 +01:00
|
|
|
|
|
|
|
# see https://bugzilla.redhat.com/show_bug.cgi?id=435559
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/bin
|
|
|
|
cp -Rv megam $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "MEGA Model Optimization Package";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' The software here is an implementation of maximum likelihood
|
|
|
|
and maximum a posterior optimization of the parameters of
|
|
|
|
these models. The algorithms used are much more efficient
|
|
|
|
than the iterative scaling techniques used in almost every
|
|
|
|
other maxent package out there. '';
|
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.umiacs.umd.edu/~hal/megam";
|
2014-04-15 13:23:07 +01:00
|
|
|
|
|
|
|
license = "non-commercial";
|
|
|
|
|
|
|
|
maintainers = [ ];
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
|
2014-04-15 13:23:07 +01:00
|
|
|
};
|
|
|
|
}
|