nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

antlr: symlink jar instead of copying

this also allows for using the jarLocation as a standalone file without pulling in a Java runtime from the wrapper scripts.

authored by

Kait Lam and committed by
GitHub
b7736a16 1536926e

+2 -2
+2 -2
pkgs/development/tools/parsing/antlr/4.nix
··· 38 38 39 39 installPhase = '' 40 40 mkdir -p "$out"/{share/java,bin} 41 - cp "$src" "$out/share/java/antlr-${version}-complete.jar" 41 + ln -s "$src" "$out/share/java/antlr-${version}-complete.jar" 42 42 43 43 echo "#! ${stdenv.shell}" >> "$out/bin/antlr" 44 44 echo "'${jre}/bin/java' -cp '$out/share/java/antlr-${version}-complete.jar:$CLASSPATH' -Xmx500M org.antlr.v4.Tool \"\$@\"" >> "$out/bin/antlr" ··· 58 58 59 59 passthru = { 60 60 inherit runtime; 61 - jarLocation = "${antlr}/share/java/antlr-${version}-complete.jar"; 61 + jarLocation = antlr.src; 62 62 }; 63 63 64 64 meta = with lib; {