mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
ecj darwin~
svn path=/nixpkgs/trunk/; revision=20312
This commit is contained in:
parent
f3f922f474
commit
63993b0c9b
@ -3,6 +3,9 @@
|
||||
let
|
||||
version = "3.5.1";
|
||||
date = "200909170800";
|
||||
isGCJ = stdenv.lib.strings.substring 0 3 gcj.name == "gcj";
|
||||
javaExec = if isGCJ then "gij" else "java";
|
||||
javaFlags = if isGCJ then "--cp" else "-cp";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ecj-${version}";
|
||||
@ -30,7 +33,7 @@ in
|
||||
mkdir -pv "$out/bin"
|
||||
cat > "$out/bin/ecj" <<EOF
|
||||
#! /bin/sh
|
||||
exec "$(type -P gij)" --cp "$out/lib/java/ecj.jar" org.eclipse.jdt.internal.compiler.batch.Main \$@
|
||||
exec "$(type -P ${javaExec})" ${javaFlags} "$out/lib/java/ecj.jar" org.eclipse.jdt.internal.compiler.batch.Main \$@
|
||||
EOF
|
||||
|
||||
chmod u+x "$out/bin/ecj"
|
||||
|
Loading…
Reference in New Issue
Block a user