Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

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

Open
ffloyd wants to merge 8 commits into
lexical-lsp:mainfrom
ffloyd:main
Open

Make it possible to override FOD hash for Flake users#793
ffloyd wants to merge 8 commits into
lexical-lsp:mainfrom
ffloyd:main

Conversation

@ffloyd

@ffloyd ffloyd commented Jul 15, 2024

Copy link
Copy Markdown

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

scohen commented Jul 22, 2024

Copy link
Copy Markdown
Collaborator

@hauleth thoughts?

@ffloyd

ffloyd commented Oct 26, 2024

Copy link
Copy Markdown
Author

Hey! Any updates here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants