···11-{ fetchurl, lib, stdenv, ocaml, makeWrapper, ncurses }:
11+{ lib
22+, stdenv
33+, fetchurl
44+, ocaml
55+, ncurses
66+}:
2733-let version = "0.92"; in
48stdenv.mkDerivation {
59 pname = "megam";
66- inherit version;
1010+ version = "0.92";
711812 src = fetchurl {
913 url = "http://hal3.name/megam/megam_src.tgz";
···2226 '';
2327 strictDeps = true;
24282525- nativeBuildInputs = [ makeWrapper ocaml ];
2929+ nativeBuildInputs = [ ocaml ];
26302731 buildInputs = [ ncurses ];
28322933 makeFlags = [
3034 "CAML_INCLUDES=${ocaml}/lib/ocaml/caml"
3135 ("WITHBIGARRAY=" + lib.optionalString (lib.versionOlder ocaml.version "4.08.0") "bigarray.cma")
3636+ "all"
3737+ "opt"
3238 ];
33393440 # see https://bugzilla.redhat.com/show_bug.cgi?id=435559
3541 dontStrip = true;
36423743 installPhase = ''
3838- mkdir -pv $out/bin
3939- cp -Rv megam $out/bin
4444+ runHook preInstall
4545+4646+ install -Dm755 megam $out/bin/megam
4747+ install -Dm755 megam.opt $out/bin/megam.opt
4848+4949+ runHook postInstall
4050 '';
41514242-4343- meta = {
5252+ meta = with lib; {
4453 description = "MEGA Model Optimization Package";
4545-4646- longDescription =
4747- '' The software here is an implementation of maximum likelihood
4848- and maximum a posterior optimization of the parameters of
4949- these models. The algorithms used are much more efficient
5050- than the iterative scaling techniques used in almost every
5151- other maxent package out there. '';
5252-5454+ longDescription = ''
5555+ The software here is an implementation of maximum likelihood and maximum a
5656+ posterior optimization of the parameters of these models. The algorithms
5757+ used are much more efficient than the iterative scaling techniques used in
5858+ almost every other maxent package out there.
5959+ '';
5360 homepage = "http://www.umiacs.umd.edu/~hal/megam";
5454-5561 license = "non-commercial";
5656-5757- maintainers = [ ];
5858- platforms = lib.platforms.unix;
6262+ maintainers = with maintainers; [ leixb ];
6363+ platforms = platforms.unix;
5964 };
6065}