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:
parent
531b58e8e6
commit
44db12298f
1 changed files with 7 additions and 5 deletions
12
flake.nix
12
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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue