How do I run commands in the env section of .replit

Why is the .replit env setup not working:

CURL_PATH = "$(nix eval nixpkgs.curl.out.outPath | cut -d '\"' -f 2)"

I just does not run the stuff inside the $(). I also tried export onBoot and it did not work either.

Add/change the replit.nix file, before the }:

  env = {
    CURL_PATH = pkgs.curl;
1 Like

I wish there was Docs for replit.nix somewhere. Also, does not have the required files, so it would be wrong in this case.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.