diff --git a/flake.nix b/flake.nix index fcc6165ed..3c49b8d0a 100644 --- a/flake.nix +++ b/flake.nix @@ -34,7 +34,7 @@ script = pkgs.writeShellApplication { name = "update-hash"; - runtimeInputs = [ pkgs.nixFlakes pkgs.gawk ]; + runtimeInputs = [pkgs.nixFlakes pkgs.gawk]; text = '' nix --extra-experimental-features 'nix-command flakes' \ diff --git a/nix/lexical.nix b/nix/lexical.nix index 4a3191125..1719f2a3c 100644 --- a/nix/lexical.nix +++ b/nix/lexical.nix @@ -3,6 +3,7 @@ fetchMixDeps, elixir, writeScript, + fodHash ? (builtins.readFile ./hash), }: mixRelease rec { pname = "lexical"; @@ -16,7 +17,7 @@ mixRelease rec { src = ./..; - sha256 = builtins.readFile ./hash; + sha256 = fodHash; }; installPhase = '' @@ -29,7 +30,7 @@ mixRelease rec { preFixup = let activate_version_manager = writeScript "activate_version_manager.sh" '' - true + true ''; in '' substituteInPlace "$out/bin/start_lexical.sh" --replace 'elixir_command=' 'elixir_command="${elixir}/bin/"'