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.
This commit is contained in:
Jon Seager 2026-02-06 18:51:07 +00:00
parent 531b58e8e6
commit 44db12298f
No known key found for this signature in database

View file

@ -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";