JAVAC compiler fails


I have the following nix package

with import {};

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

src = fetchurl {
url = “${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 ( after checking the Bug Database ( for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.checkWritable(
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newOutputStream(

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.