JAVAC compiler fails

Hello!

I have the following nix package

with import {};

stdenv.mkDerivation rec {
pname = “selenium-java”;
version = “4.15.0”;

src = fetchurl {
url = “https://github.com/SeleniumHQ/selenium/releases/download/selenium-${version}/selenium-java-${version}.zip”;
sha256 = “DAB9F4F2A6DBBE63D5FD976992F61FDA13D8BDEC9D92DF360BB4CB724EE7BA9B”;
};

nativeBuildInputs = [ unzip ];

buildInputs = [ jdk ];

phases = [“unpackPhase” “installPhase”];

unpackPhase = ‘’
unzip $src
‘’;

installPhase = ‘’
mkdir -p $out/share/java/lib
mv .jar $out/share/java/
mv lib/
.jar $out/share/java/
‘’;

meta = with lib; {
description = “Selenium-Java”;
license = licenses.asl20;
platforms = platforms.all;
};
}

After installing, I have a simple java file that I try to compile using javac. This fails with the following error:

An exception has occurred in the compiler (19.0.2). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
java.nio.file.ReadOnlyFileSystemException
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.checkWritable(ZipFileSystem.java:370)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newOutputStream(ZipFileSystem.java:804)

Could this be related to nix?

Thanks in advance
Yours faithfully

Check your arguments to javac to ensure you’re not trying to write to a file in /nix; It’s mounted read-only.