15 stdenvNoCC.mkDerivation (finalAttrs: {
19 src = fetchFromGitHub {
22 rev = "v${finalAttrs.version}";
23 hash = "sha256-VhcsX9BxiZ0nISN6Xe4N+kq0iBMCtNhyxDrm9cwXfBA=";
27 # we can't use stripJavaArchivesHook here, because the build process puts a .jar file into a zip file
28 # this patch calls strip-nondeterminism manually
29 ./make-deterministic.patch
41 patchShebangs ./make.sh
50 java -jar astral.${finalAttrs.version}.jar -i main/test_data/song_primates.424.gene.tre
57 install -Dm644 astral.${finalAttrs.version}.jar -t $out/share
58 install -Dm644 lib/*.jar -t $out/share/lib
59 install -Dm644 Astral.${finalAttrs.version}.zip -t $out/share
60 cp -a main/test_data $out/share
62 makeWrapper ${jre}/bin/java $out/bin/astral \
63 --add-flags "-jar $out/share/astral.${finalAttrs.version}.jar"
69 homepage = "https://github.com/smirarab/ASTRAL";
70 description = "Tool for estimating an unrooted species tree given a set of unrooted gene trees";
71 mainProgram = "astral";
72 sourceProvenance = with sourceTypes; [
74 binaryBytecode # source bundles dependencies as jars
76 license = licenses.asl20;
77 maintainers = with maintainers; [ bzizou tomasajt ];