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 }: 2 3 - let version = "0.92"; in 4 stdenv.mkDerivation { 5 pname = "megam"; 6 - inherit version; 7 8 src = fetchurl { 9 url = "http://hal3.name/megam/megam_src.tgz"; ··· 22 ''; 23 strictDeps = true; 24 25 - nativeBuildInputs = [ makeWrapper ocaml ]; 26 27 buildInputs = [ ncurses ]; 28 29 makeFlags = [ 30 "CAML_INCLUDES=${ocaml}/lib/ocaml/caml" 31 ("WITHBIGARRAY=" + lib.optionalString (lib.versionOlder ocaml.version "4.08.0") "bigarray.cma") 32 ]; 33 34 # see https://bugzilla.redhat.com/show_bug.cgi?id=435559 35 dontStrip = true; 36 37 installPhase = '' 38 - mkdir -pv $out/bin 39 - cp -Rv megam $out/bin 40 ''; 41 42 - 43 - meta = { 44 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 - 53 homepage = "http://www.umiacs.umd.edu/~hal/megam"; 54 - 55 license = "non-commercial"; 56 - 57 - maintainers = [ ]; 58 - platforms = lib.platforms.unix; 59 }; 60 }
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , ocaml 5 + , ncurses 6 + }: 7 8 stdenv.mkDerivation { 9 pname = "megam"; 10 + version = "0.92"; 11 12 src = fetchurl { 13 url = "http://hal3.name/megam/megam_src.tgz"; ··· 26 ''; 27 strictDeps = true; 28 29 + nativeBuildInputs = [ ocaml ]; 30 31 buildInputs = [ ncurses ]; 32 33 makeFlags = [ 34 "CAML_INCLUDES=${ocaml}/lib/ocaml/caml" 35 ("WITHBIGARRAY=" + lib.optionalString (lib.versionOlder ocaml.version "4.08.0") "bigarray.cma") 36 + "all" 37 + "opt" 38 ]; 39 40 # see https://bugzilla.redhat.com/show_bug.cgi?id=435559 41 dontStrip = true; 42 43 installPhase = '' 44 + runHook preInstall 45 + 46 + install -Dm755 megam $out/bin/megam 47 + install -Dm755 megam.opt $out/bin/megam.opt 48 + 49 + runHook postInstall 50 ''; 51 52 + meta = with lib; { 53 description = "MEGA Model Optimization Package"; 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 + ''; 60 homepage = "http://www.umiacs.umd.edu/~hal/megam"; 61 license = "non-commercial"; 62 + maintainers = with maintainers; [ leixb ]; 63 + platforms = platforms.unix; 64 }; 65 }