nixie-dev / nixie

Put Nix in everything!
GNU General Public License v2.0
89 stars 1 forks source link

Check alternate SSL bundle path #7

Closed Thesola10 closed 1 year ago

Thesola10 commented 1 year ago

This fixes #6

In the future, a list of known OpenSSL paths could be checked dynamically

Thesola10 commented 1 year ago

hey @twesterhout could you give this a shot?

twesterhout commented 1 year ago

Hm... no, I'm getting SSL errors again

twesterhout commented 1 year ago

Oh wait, I have to regenerate nix manually, don't I?

Thesola10 commented 1 year ago

Normally you'd run nixie update to refresh the nix in this branch, i'll do that for you real quick

twesterhout commented 1 year ago

Still the same :(

twest@int4:~/nixie$ git pull origin fix-ssl
From https://github.com/nixie-dev/nixie
 * branch            fix-ssl    -> FETCH_HEAD
Updating 5db2b26..85c1556
Fast-forward
 nix | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
twest@int4:~/nixie$ ./nix shell nixpkgs#mpi
warning: error: unable to download 'https://cache.nixos.org/nar/0m38qzijk1z3v3lym81rmkih4x3zqz053nhijvp7ywl0gff466xk.nar.xz': SSL connect error (35); retrying in 340 ms
Thesola10 commented 1 year ago

i'm an idiot, i updated with my installed version of Nixie instead of this branch so it just updated the script with the previous release

The real command is nix run . -- update when dev'ing

twesterhout commented 1 year ago

That did it! Thanks for the quick fix.

Thesola10 commented 1 year ago

By the way, quick heads-up: while copying the nix executable around does work, it doesn't set up .gitignore and .gitattributes nor does it guarantee getting the latest sources the same way running nixie in the target repository does.

nix in this repo is provided for dogfooding and convenience developing Nixie itself (and to serve as an example, and to let users test it on their non-Nix machines)