Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to override FOD hash for Flake users #793

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ffloyd
Copy link

@ffloyd ffloyd commented Jul 15, 2024

It's especially useful when Lexical installed on dev machine via local developer shell (direnv, etc). So I can override FOD hash and fix hash mismatch that can occur due to different Erlang/Elixir versions. For example:

        # Using pkgs.beam.packages is a more complex way than just use
        # pkgs.elixir but allows to ensure that all stack is built
        # against specific version of Erlang/OTP.
        otp = pkgs.beam.packages.erlang_26;
        erlang = otp.erlang;
        elixir = otp.elixir_1_17;

        # Use lexical from flake instead of nixpkgs, but override
        # Erlang & Elixir versions to match with our setup.
        lexical = ((lexical-flake.lib.mkLexical {erlang = otp;}).override {
          inherit elixir;
          fodHash = "sha256-XT8+fcYDF4z5EBNx6DgPEljyvkD5NH08sBqYwEOGvLI=";
        });

@scohen
Copy link
Collaborator

scohen commented Jul 22, 2024

@hauleth thoughts?

@ffloyd
Copy link
Author

ffloyd commented Oct 26, 2024

Hey! Any updates here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants