MrOtherGuy / fx-autoconfig

Load custom javascript in browser context
Mozilla Public License 2.0
164 stars 10 forks source link

Add Nix installation instructions #49

Closed rohanssrao closed 4 months ago

rohanssrao commented 4 months ago

Resolves #45

codenyte commented 4 months ago

This is awesome

MrOtherGuy commented 4 months ago

Looks fine to me. Nice that you figured how to get this working. It's just a bit annoying having to mention the sha256 hash here, especially so since I'm not getting the same hash for config.js on Windows. Not sure what that's about... Fortunately config.js rarely changes.

rohanssrao commented 4 months ago

It's just a bit annoying having to mention the sha256 hash here

Yeah, it's a consequence of reproducibility. What's nice though is that if the hash changes, Nix will tell you the correct hash in its error message, so it's trivial to fix.

For example:

error: hash mismatch in file downloaded from 'https://raw.githubusercontent.com/MrOtherGuy/fx-autoconfig/master/program/config.js':
         specified: sha256:0mx679fbc4d9x4bnqajqx5a95y1lfasvf90pbqkh9sm3ch945p40
         got:       sha256:1mx679fbc4d9x4bnqajqx5a95y1lfasvf90pbqkh9sm3ch945p40