Merge pull request #168773 from Leixb/megam-add-opt

authored by Sandro and committed by GitHub c2ef479b 3be70b09

+25 -20
+25 -20
pkgs/applications/science/misc/megam/default.nix
··· 1 - { fetchurl, lib, stdenv, ocaml, makeWrapper, ncurses }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , ocaml 5 + , ncurses 6 + }: 2 7 3 - let version = "0.92"; in 4 8 stdenv.mkDerivation { 5 9 pname = "megam"; 6 - inherit version; 10 + version = "0.92"; 7 11 8 12 src = fetchurl { 9 13 url = "http://hal3.name/megam/megam_src.tgz"; ··· 22 26 ''; 23 27 strictDeps = true; 24 28 25 - nativeBuildInputs = [ makeWrapper ocaml ]; 29 + nativeBuildInputs = [ ocaml ]; 26 30 27 31 buildInputs = [ ncurses ]; 28 32 29 33 makeFlags = [ 30 34 "CAML_INCLUDES=${ocaml}/lib/ocaml/caml" 31 35 ("WITHBIGARRAY=" + lib.optionalString (lib.versionOlder ocaml.version "4.08.0") "bigarray.cma") 36 + "all" 37 + "opt" 32 38 ]; 33 39 34 40 # see https://bugzilla.redhat.com/show_bug.cgi?id=435559 35 41 dontStrip = true; 36 42 37 43 installPhase = '' 38 - mkdir -pv $out/bin 39 - cp -Rv megam $out/bin 44 + runHook preInstall 45 + 46 + install -Dm755 megam $out/bin/megam 47 + install -Dm755 megam.opt $out/bin/megam.opt 48 + 49 + runHook postInstall 40 50 ''; 41 51 42 - 43 - meta = { 52 + meta = with lib; { 44 53 description = "MEGA Model Optimization Package"; 45 - 46 - longDescription = 47 - '' The software here is an implementation of maximum likelihood 48 - and maximum a posterior optimization of the parameters of 49 - these models. The algorithms used are much more efficient 50 - than the iterative scaling techniques used in almost every 51 - other maxent package out there. ''; 52 - 54 + longDescription = '' 55 + The software here is an implementation of maximum likelihood and maximum a 56 + posterior optimization of the parameters of these models. The algorithms 57 + used are much more efficient than the iterative scaling techniques used in 58 + almost every other maxent package out there. 59 + ''; 53 60 homepage = "http://www.umiacs.umd.edu/~hal/megam"; 54 - 55 61 license = "non-commercial"; 56 - 57 - maintainers = [ ]; 58 - platforms = lib.platforms.unix; 62 + maintainers = with maintainers; [ leixb ]; 63 + platforms = platforms.unix; 59 64 }; 60 65 }