diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2023-03-27 00:59:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 00:59:44 +0200 |
commit | c2ef479b6267f6c07fb484bfe86ff1f685740575 (patch) | |
tree | 05e5160f0ad529d5cf257ab4b1c6edfc27a0f34b /pkgs/applications/science/misc | |
parent | 3be70b091b5af3a3c782bae4af8837267db65bc3 (diff) | |
parent | d443805fe39d40e2c4bd31e3e54193f42735757b (diff) |
Merge pull request #168773 from Leixb/megam-add-opt
Diffstat (limited to 'pkgs/applications/science/misc')
-rw-r--r-- | pkgs/applications/science/misc/megam/default.nix | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/pkgs/applications/science/misc/megam/default.nix b/pkgs/applications/science/misc/megam/default.nix index e71c232be8f01..cae0fe9b26fdc 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; + maintainers = with maintainers; [ leixb ]; + platforms = platforms.unix; }; } |