diff --git a/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix b/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix index a18ffcbf3d4b..f7bc2afcc4cf 100644 --- a/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix +++ b/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix @@ -103,7 +103,8 @@ let result = stdenv.mkDerivation rec { mv $sourceRoot $out fi - for file in $out/* + shopt -s extglob + for file in $out/!(*src.zip) do if test -f $file ; then rm $file