diff options
author | LeixB <abone9999@gmail.com> | 2022-04-15 11:43:47 +0200 |
---|---|---|
committer | LeixB <abone9999@gmail.com> | 2023-03-24 18:52:14 +0100 |
commit | d85fae35d94dd270b5904c7d9cd516a2cd45f4bc (patch) | |
tree | a1ced913c0daf997b2f9982f9ccbf54a37e8c5b8 /pkgs/applications/science/misc/megam/default.nix | |
parent | 3d57138bd9abe31bae25704cebaab7527010cc5e (diff) |
megam: add megam.opt binary
- Add megam.opt (optimized native binary)
Diffstat (limited to 'pkgs/applications/science/misc/megam/default.nix')
-rw-r--r-- | pkgs/applications/science/misc/megam/default.nix | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/pkgs/applications/science/misc/megam/default.nix b/pkgs/applications/science/misc/megam/default.nix index e71c232be8f01..458b6ae04cd46 100644 --- a/pkgs/applications/science/misc/megam/default.nix +++ b/pkgs/applications/science/misc/megam/default.nix @@ -1,9 +1,13 @@ -{ fetchurl, lib, stdenv, ocaml, makeWrapper, ncurses }: +{ lib +, stdenv +, fetchurl +, ocaml +, ncurses +}: -let version = "0.92"; in stdenv.mkDerivation { pname = "megam"; - inherit version; + version = "0.92"; src = fetchurl { url = "http://hal3.name/megam/megam_src.tgz"; @@ -22,39 +26,40 @@ stdenv.mkDerivation { ''; strictDeps = true; - nativeBuildInputs = [ makeWrapper ocaml ]; + nativeBuildInputs = [ ocaml ]; buildInputs = [ ncurses ]; makeFlags = [ "CAML_INCLUDES=${ocaml}/lib/ocaml/caml" ("WITHBIGARRAY=" + lib.optionalString (lib.versionOlder ocaml.version "4.08.0") "bigarray.cma") + "all" + "opt" ]; # see https://bugzilla.redhat.com/show_bug.cgi?id=435559 dontStrip = true; installPhase = '' - mkdir -pv $out/bin - cp -Rv megam $out/bin - ''; - + runHook preInstall - meta = { - description = "MEGA Model Optimization Package"; + install -Dm755 megam $out/bin/megam + install -Dm755 megam.opt $out/bin/megam.opt - 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. ''; + runHook postInstall + ''; + meta = with lib; { + 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. + ''; homepage = "http://www.umiacs.umd.edu/~hal/megam"; - license = "non-commercial"; - maintainers = [ ]; - platforms = lib.platforms.unix; + platforms = platforms.unix; }; } |