From 50ae09a1a9749e2c844e36dd0ac8b3f6650e5d8e Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 7 Feb 2026 12:51:25 -0600 Subject: [PATCH] fix: Add explicit deps.get in configure phase Override configurePhase to explicitly run 'mix deps.get' before compilation. This ensures hex dependencies (like ecto) are available when vendored path dependencies (oban_met) are compiled. --- nix/build.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nix/build.nix b/nix/build.nix index f003c8d5..472d304a 100644 --- a/nix/build.nix +++ b/nix/build.nix @@ -40,6 +40,16 @@ beamPackages.mixRelease { # Environment variables for build MIX_OS_DEPS_COMPILE_PARTITION_COUNT = "6"; + # Override Mix phases to handle vendored deps properly + configurePhase = '' + runHook preConfigure + + # Get all deps (including hex deps that vendored packages need) + mix deps.get --only prod + + runHook postConfigure + ''; + # Pre-build: Copy pre-built NIF and stub the Makefile to skip rebuild preBuild = '' # Copy pre-built NIF shared library