When creating a groovy script for nixos I ran into an issue. Here is the script.
The script uses a second bash directive which tells nix-shell to run the script using groovy. Groovy gives the following error.
This seems to be a groovy issue and I was wondering how it could be fixed. There is a workaround for nix-shell described here. I'm willing to submit a pull request for this but I'm not sure where to start. Thanks!