Update replit nix version (SOLVED)

Describe your feature request
Update replit to latest nix version

What problem(s) would this feature solve?
Most of the nixpkgs are outdated and almost all of the nixos help out there is not for the current replit version. (Current replit: 2.3.16, current latest: 2.13.2)

Explain what you were trying to do when you came across the problem leading to this feature request
Trying to install OpenSSL 3

4 Likes

You can do this inside the .replit file in the [nix] section with the channel keyword.

See the documentation here about configuring Nix:
https://docs.replit.com/programming-ide/configuring-repl#nix

4 Likes

Oh! I didn’t know about that. I’ll check it out.

1 Like

Repls are already on the latest version of nixpkgs so I don’t think this will fix it.

2 Likes

Even if the version of openssl is currently the same on unstable channel, it was likely added before it was added to the stable 22.11 channel, so replit’s nix index may have openssl 3 on unstable

2 Likes

I switched to unstable, OpenSSL is still on 1.1.1

2 Likes

and you’re sure you aren’t using openssl_1_1 instead of just openssl?

2 Likes

The fix is using pkgs.openssl-3_x. For anyone else encountering a problem like this remember you can specify the version via this format: name-mainV_subV_fixV and X is a wild card (I think)

Edit

Now, the pkgs.openssl-3_x, but it did some kind of nix full reboot and now the normal OpenSSL package is OpenSSL 3, so still working.

3 Likes

You can find the available versions on Nix.

1 Like

issue is that the replit nix index is outdated, so some packages may have been removed and not show up on https://search.nixos.org, but still be on replit. This is likely just on the unstable channel, but some people will have to use that channel because the packages on the other channels are too old, sometimes even in the upstream nix index

2 Likes

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