diff --git a/pkgs/development/compilers/jdk/dlj-bundle-builder.sh b/pkgs/development/compilers/jdk/dlj-bundle-builder.sh index 74772222b19e..5a3c8bf7f2ea 100644 --- a/pkgs/development/compilers/jdk/dlj-bundle-builder.sh +++ b/pkgs/development/compilers/jdk/dlj-bundle-builder.sh @@ -32,11 +32,13 @@ for i in $libraries; do done if test -z "$installjdk"; then - rpath=$rpath${rpath:+:}$out/lib/$architecture/jli + jrePath=$out else - rpath=$rpath${rpath:+:}$out/jre/lib/$architecture/jli + jrePath=$out/jre fi +rpath=$rpath${rpath:+:}$jrePath/lib/$architecture/jli + # set all the dynamic linkers find $out -type f -perm +100 \ -exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \ @@ -52,15 +54,11 @@ function mozillaExtraLibPath() { if test -z "$pluginSupport"; then rm $out/bin/javaws else - source $makeWrapper - - mv $out/bin/javaws $out/bin/javaws.bin - makeWrapper "$out/bin/javaws.bin" "$out/bin/javaws" \ + wrapProgram "$out/bin/javaws" \ --suffix-each LD_LIBRARY_PATH ':' "$(addSuffix /lib $libPath)" - mozillaExtraLibPath "$out/jre/plugin/i386/ns7" - mozillaExtraLibPath "$out/plugin/i386/ns7" + mozillaExtraLibPath "$jrePath/plugin/i386/ns7" fi # Workaround for assertions in xlib, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373. -substituteInPlace $out/jre/lib/i386/xawt/libmawt.so --replace XINERAMA FAKEEXTN +substituteInPlace $jrePath/lib/i386/xawt/libmawt.so --replace XINERAMA FAKEEXTN diff --git a/pkgs/development/compilers/jdk/jdk6-linux.nix b/pkgs/development/compilers/jdk/jdk6-linux.nix index 0c285c4526e6..14e0005e38c4 100644 --- a/pkgs/development/compilers/jdk/jdk6-linux.nix +++ b/pkgs/development/compilers/jdk/jdk6-linux.nix @@ -2,6 +2,7 @@ , stdenv , fetchurl , unzip +, makeWrapper , xlibs ? null , installjdk ? true , pluginSupport ? true @@ -51,7 +52,7 @@ assert pluginSupport -> libstdcpp5 != null; else abort "jdk requires i686-linux or x86_64 linux"; - buildInputs = [unzip]; + buildInputs = [unzip makeWrapper]; libraries = (if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi] else []); @@ -60,7 +61,6 @@ assert pluginSupport -> libstdcpp5 != null; # necessary for javaws and mozilla plugin if pluginSupport then { - makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh; libPath = [libstdcpp5]; inherit libstdcpp5; } diff --git a/pkgs/development/tools/analysis/findbugs/default.nix b/pkgs/development/tools/analysis/findbugs/default.nix index 2c14d2c83294..cf4f87f528e1 100644 --- a/pkgs/development/tools/analysis/findbugs/default.nix +++ b/pkgs/development/tools/analysis/findbugs/default.nix @@ -17,4 +17,9 @@ stdenv.mkDerivation { cp -prd bin lib plugin doc $out/ rm $out/bin/*.bat ''; + + meta = { + description = "A static analysis tool to find bugs in Java programs automatically"; + homepage = http://findbugs.sourceforge.net/; + }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7d07f39208c4..2732e2b84e7b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1471,7 +1471,7 @@ rec { jdkdistro = installjdk: pluginSupport: assert supportsJDK; (if pluginSupport then appendToName "plugin" else x: x) (import ../development/compilers/jdk { - inherit fetchurl stdenv unzip installjdk xlibs pluginSupport; + inherit fetchurl stdenv unzip installjdk xlibs pluginSupport makeWrapper; libstdcpp5 = gcc33.gcc; });