From 44db12298fc725f4809ce73bee81a29187b5d2c2 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Fri, 6 Feb 2026 18:51:07 +0000 Subject: [PATCH] fix(nix): move build tools to nativeBuildInputs and fix test linker path clang and lld are build-time tools but were in buildInputs, causing "cannot find ld" during compilation. Set LD_LIBRARY_PATH for openssl so integration tests can find libssl.so.3 during the check phase. --- flake.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 185f9af..028a006 100644 --- a/flake.nix +++ b/flake.nix @@ -51,18 +51,20 @@ cargoLock.lockFile = ./Cargo.lock; nativeBuildInputs = with pkgs; [ + clang + lld pkg-config tailwindcss_4 ]; - buildInputs = with pkgs; [ openssl ]; + buildInputs = with pkgs; [ + openssl + ]; - preBuild = '' - tailwindcss -i static/css/input.css -o static/css/styles.css --minify - ''; + env.LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.openssl ]; meta = { - description = "Log your favourite roasters, roasts, brews and cafes!"; + description = "Log your favourite roasters, roasts, brews and cafes"; homepage = "https://github.com/jnsgruk/brewlog"; license = lib.licenses.asl20; mainProgram = "brewlog";