Overriding the buildFHS.runScript attribute

I want to override the runScript in the burpsuite package, defined here

I’ve tried .override and .overrideAttrs both to no avail. nix repl shows that args.runScript exists but overriding it results in a cryptic expected set but got string

How can I add arguments to the java -jar ... command?

The solution was to call buildFHSEnv again with merged arguments. For example:

final: prev: {
  burpsuite = let
    burpsuite = prev.burpsuite.override { proEdition = true; };
  in prev.buildFHSEnv (burpsuite.args // {
    runScript = "my new runScript!";
  });
}