How to permit insecure packages in replit.nix?

Hey I’m trying to add the sparrow package, bitcoin wallet built in java, and have to permit insecure packages because it’s built on openjdk. Any idea how to set up the replit.nix config to allow it?

Here’s the error:

Detected change in environment, reloading shell...
nix error: building nix env: exit status 1
Output has been trimmed to the last 20 lines

     {
       nixpkgs.config.permittedInsecurePackages = [
         "openjdk-18+36"
       ];
     }

c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
   ‘openjdk-18+36’ to `permittedInsecurePackages` in
   ~/.config/nixpkgs/config.nix, like so:

     {
       permittedInsecurePackages = [
         "openjdk-18+36"
       ];
     }


(use '--show-trace' to show detailed location information)

In the env section try adding this: NIXPKGS_ALLOW_INSECURE="1";

1 Like